Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
codingpy
leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
LeetCode - The World's Leading Online Programming Learning Platform
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
5 Commits
5 Commits
Folders and files
Name
Name
Last commit message
Last commit date
lcci
lcci
lcof
lcof
lcof_ii
lcof_ii
.git-blame-ignore-revs
.git-blame-ignore-revs
101_symmetric_tree.py
101_symmetric_tree.py
102_binary_tree_level_order_traversal.py
102_binary_tree_level_order_traversal.py
104_maximum_depth_of_binary_tree.py
104_maximum_depth_of_binary_tree.py
1050_actors_and_directors_who_cooperated_at_least_three_times.sql
1050_actors_and_directors_who_cooperated_at_least_three_times.sql
110_balanced_binary_tree.py
110_balanced_binary_tree.py
113_path_sum_ii.py
113_path_sum_ii.py
115_distinct_subsequences.py
115_distinct_subsequences.py
118_pascals_triangle.py
118_pascals_triangle.py
11_container_with_most_water.py
11_container_with_most_water.py
121_best_time_to_buy_and_sell_stock.py
121_best_time_to_buy_and_sell_stock.py
122_best_time_to_buy_and_sell_stock_ii.py
122_best_time_to_buy_and_sell_stock_ii.py
1282_group_the_people_given_the_group_size_they_belong_to.py
1282_group_the_people_given_the_group_size_they_belong_to.py
12_integer_to_roman.py
12_integer_to_roman.py
138_copy_list_with_random_pointer.py
138_copy_list_with_random_pointer.py
1393_capital_gainloss.sql
1393_capital_gainloss.sql
13_roman_to_integer.py
13_roman_to_integer.py
1413_minimum_value_to_get_positive_step_by_step_sum.py
1413_minimum_value_to_get_positive_step_by_step_sum.py
1422_maximum_score_after_splitting_a_string.py
1422_maximum_score_after_splitting_a_string.py
1426_counting_elements.py
1426_counting_elements.py
1450_number_of_students_doing_homework_at_a_given_time.py
1450_number_of_students_doing_homework_at_a_given_time.py
1455_check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence.py
1455_check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence.py
1460_make_two_arrays_equal_by_reversing_sub_arrays.py
1460_make_two_arrays_equal_by_reversing_sub_arrays.py
1464_maximum_product_of_two_elements_in_an_array.py
1464_maximum_product_of_two_elements_in_an_array.py
14_longest_common_prefix.py
14_longest_common_prefix.py
151_reverse_words_in_a_string.py
151_reverse_words_in_a_string.py
1592_rearrange_spaces_between_words.py
1592_rearrange_spaces_between_words.py
1598_crawler_log_folder.py
1598_crawler_log_folder.py
15_3sum.py
15_3sum.py
160_intersection_of_two_linked_lists.py
160_intersection_of_two_linked_lists.py
1620_coordinate_with_maximum_network_quality.py
1620_coordinate_with_maximum_network_quality.py
1624_largest_substring_between_two_equal_characters.py
1624_largest_substring_between_two_equal_characters.py
1636_sort_array_by_increasing_frequency.py
1636_sort_array_by_increasing_frequency.py
1640_check_array_formation_through_concatenation.py
1640_check_array_formation_through_concatenation.py
1662_check_if_two_string_arrays_are_equivalent.py
1662_check_if_two_string_arrays_are_equivalent.py
1678_goal_parser_interpretation.py
1678_goal_parser_interpretation.py
1684_count_the_number_of_consistent_strings.py
1684_count_the_number_of_consistent_strings.py
169_majority_element.py
169_majority_element.py
16_3sum_closest.py
16_3sum_closest.py
1700_number_of_students_unable_to_eat_lunch.py
1700_number_of_students_unable_to_eat_lunch.py
1729_find_followers_count.sql
1729_find_followers_count.sql
172_factorial_trailing_zeroes.py
172_factorial_trailing_zeroes.py
1732_find_the_highest_altitude.py
1732_find_the_highest_altitude.py
1741_find_total_time_spent_by_each_employee.sql
1741_find_total_time_spent_by_each_employee.sql
1757_recyclable_and_low_fat_products.sql
1757_recyclable_and_low_fat_products.sql
175_combine_two_tables.sql
175_combine_two_tables.sql
1768_merge_strings_alternately.py
1768_merge_strings_alternately.py
176_second_highest_salary.sql
176_second_highest_salary.sql
1773_count_items_matching_a_rule.py
1773_count_items_matching_a_rule.py
177_nth_highest_salary.sql
177_nth_highest_salary.sql
1784_check_if_binary_string_has_at_most_one_segment_of_ones.py
1784_check_if_binary_string_has_at_most_one_segment_of_ones.py
178_rank_scores.sql
178_rank_scores.sql
17_letter_combinations_of_a_phone_number.py
17_letter_combinations_of_a_phone_number.py
1800_maximum_ascending_subarray_sum.py
1800_maximum_ascending_subarray_sum.py
180_consecutive_numbers.sql
180_consecutive_numbers.sql
181_employees_earning_more_than_their_managers.sql
181_employees_earning_more_than_their_managers.sql
1822_sign_of_the_product_of_an_array.py
1822_sign_of_the_product_of_an_array.py
1823_find_the_winner_of_the_circular_game.py
1823_find_the_winner_of_the_circular_game.py
182_duplicate_emails.sql
182_duplicate_emails.sql
183_customers_who_never_order.sql
183_customers_who_never_order.sql
184_department_highest_salary.sql
184_department_highest_salary.sql
185_department_top_three_salaries.sql
185_department_top_three_salaries.sql
1873_calculate_special_bonus.sql
1873_calculate_special_bonus.sql
1890_the_latest_login_in_2020.sql
1890_the_latest_login_in_2020.sql
18_4sum.py
18_4sum.py
1965_employees_with_missing_information.sql
1965_employees_with_missing_information.sql
196_delete_duplicate_emails.sql
196_delete_duplicate_emails.sql
197_rising_temperature.sql
197_rising_temperature.sql
19_remove_nth_node_from_end_of_list.py
19_remove_nth_node_from_end_of_list.py
1_two_sum.py
1_two_sum.py
20_valid_parentheses.py
20_valid_parentheses.py
21_merge_two_sorted_lists.py
21_merge_two_sorted_lists.py
22_generate_parentheses.py
22_generate_parentheses.py
231_power_of_two.py
231_power_of_two.py
233_number_of_digit_one.py
233_number_of_digit_one.py
235_lowest_common_ancestor_of_a_binary_search_tree.py
235_lowest_common_ancestor_of_a_binary_search_tree.py
236_lowest_common_ancestor_of_a_binary_tree.py
236_lowest_common_ancestor_of_a_binary_tree.py
237_delete_node_in_a_linked_list.py
237_delete_node_in_a_linked_list.py
2389_longest_subsequence_with_limited_sum.py
2389_longest_subsequence_with_limited_sum.py
262_trips_and_users.sql
262_trips_and_users.sql
264_ugly_number_ii.py
264_ugly_number_ii.py
26_remove_duplicates_from_sorted_array.py
26_remove_duplicates_from_sorted_array.py
27_remove_element.py
27_remove_element.py
283_move_zeroes.py
283_move_zeroes.py
2_add_two_numbers.py
2_add_two_numbers.py
300_longest_increasing_subsequence.py
300_longest_increasing_subsequence.py
31_next_permutation.py
31_next_permutation.py
326_power_of_three.py
326_power_of_three.py
34_find_first_and_last_position_of_element_in_sorted_array.py
34_find_first_and_last_position_of_element_in_sorted_array.py
35_search_insert_position.py
35_search_insert_position.py
389_find_the_difference.py
389_find_the_difference.py
3_longest_substring_without_repeating_characters.py
3_longest_substring_without_repeating_characters.py
42_trapping_rain_water.py
42_trapping_rain_water.py
45_jump_game_ii.py
45_jump_game_ii.py
48_rotate_image.py
48_rotate_image.py
496_next_greater_element_i.py
496_next_greater_element_i.py
504_base_7.py
504_base_7.py
View all files
Repository files navigation
README
More
items
LeetCode
LeetCode - The World's Leading Online Programming Learning Platform
About
LeetCode - The World's Leading Online Programming Learning Platform
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.