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 }}
smetam
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
leetcode
/
problems
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
leetcode
/
problems
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0001_two_sum
0001_two_sum
0002_add_two_numbers
0002_add_two_numbers
0003_longest_substring_without_repeating_characters
0003_longest_substring_without_repeating_characters
0005_longest_palindromic_substring
0005_longest_palindromic_substring
0006_zigzag_conversion
0006_zigzag_conversion
0019_remove_nth_node_from_end_of_list
0019_remove_nth_node_from_end_of_list
0020_valid_parentheses
0020_valid_parentheses
0021_merge_two_sorted_lists
0021_merge_two_sorted_lists
0023_merge_k_sorted_lists
0023_merge_k_sorted_lists
0033_search_in_rotated_sorted_array
0033_search_in_rotated_sorted_array
0034_find_first_and_last_position_of_element_in_sorted_array
0034_find_first_and_last_position_of_element_in_sorted_array
0035_search_insert_position
0035_search_insert_position
0036_valid_sudoku
0036_valid_sudoku
0042_trapping_rain_water
0042_trapping_rain_water
0045_jump_game_ii
0045_jump_game_ii
0046_permutations
0046_permutations
0053_maximum_subarray
0053_maximum_subarray
0055_jump_game
0055_jump_game
0062_unique_paths
0062_unique_paths
0063_unique_paths_ii
0063_unique_paths_ii
0064_minimum_path_sum
0064_minimum_path_sum
0067_add_binary
0067_add_binary
0069_sqrt_x
0069_sqrt_x
0070_climbing_stairs
0070_climbing_stairs
0072_edit_distance
0072_edit_distance
0074_search_a_2d_matrix
0074_search_a_2d_matrix
0077_combinations
0077_combinations
0083_remove_duplicates_from_sorted_list
0083_remove_duplicates_from_sorted_list
0088_merge_sorted_array
0088_merge_sorted_array
0091_decode_ways
0091_decode_ways
0094_binary_tree_inorder_traversal
0094_binary_tree_inorder_traversal
0096_unique_binary_search_trees
0096_unique_binary_search_trees
0098_validate_binary_search_tree
0098_validate_binary_search_tree
0101_symmetric_tree
0101_symmetric_tree
0102_binary_tree_level_order_traversal
0102_binary_tree_level_order_traversal
0104_maximum_depth_of_binary_tree
0104_maximum_depth_of_binary_tree
0112_path_sum
0112_path_sum
0116_populating_next_right_pointers_in_each_node
0116_populating_next_right_pointers_in_each_node
0118_pascals_triangle
0118_pascals_triangle
0119_pascals_triangle_ii
0119_pascals_triangle_ii
0120_triangle
0120_triangle
0121_best_time_to_buy_and_sell_stock
0121_best_time_to_buy_and_sell_stock
0122_best_time_to_buy_and_sell_stock_ii
0122_best_time_to_buy_and_sell_stock_ii
0136_single_number
0136_single_number
0139_word_break
0139_word_break
0141_linked_list_cycle
0141_linked_list_cycle
0142_linked_list_cycle_ii
0142_linked_list_cycle_ii
0144_binary_tree_preorder_traversal
0144_binary_tree_preorder_traversal
0145_binary_tree_postorder_traversal
0145_binary_tree_postorder_traversal
0152_maximum_product_subarray
0152_maximum_product_subarray
0153_find_minimum_in_rotated_sorted_array
0153_find_minimum_in_rotated_sorted_array
0167_two_sum_ii___input_array_is_sorted
0167_two_sum_ii___input_array_is_sorted
0189_rotate_array
0189_rotate_array
0190_reverse_bits
0190_reverse_bits
0191_number_of_1_bits
0191_number_of_1_bits
0198_house_robber
0198_house_robber
0200_number_of_islands
0200_number_of_islands
0202_happy_number
0202_happy_number
0203_remove_linked_list_elements
0203_remove_linked_list_elements
0205_isomorphic_strings
0205_isomorphic_strings
0206_reverse_linked_list
0206_reverse_linked_list
0213_house_robber_ii
0213_house_robber_ii
0217_contains_duplicate
0217_contains_duplicate
0221_maximal_square
0221_maximal_square
0226_invert_binary_tree
0226_invert_binary_tree
0231_power_of_two
0231_power_of_two
0232_implement_queue_using_stacks
0232_implement_queue_using_stacks
0235_lowest_common_ancestor_of_a_binary_search_tree
0235_lowest_common_ancestor_of_a_binary_search_tree
0242_valid_anagram
0242_valid_anagram
0264_ugly_number_ii
0264_ugly_number_ii
0278_first_bad_version
0278_first_bad_version
0279_perfect_squares
0279_perfect_squares
0283_move_zeroes
0283_move_zeroes
0299_bulls_and_cows
0299_bulls_and_cows
0300_longest_increasing_subsequence
0300_longest_increasing_subsequence
0303_range_sum_query___immutable
0303_range_sum_query___immutable
0304_range_sum_query_2d___immutable
0304_range_sum_query_2d___immutable
0309_best_time_to_buy_and_sell_stock_with_cooldown
0309_best_time_to_buy_and_sell_stock_with_cooldown
0322_coin_change
0322_coin_change
0343_integer_break
0343_integer_break
0344_reverse_string
0344_reverse_string
0350_intersection_of_two_arrays_ii
0350_intersection_of_two_arrays_ii
0367_valid_perfect_square
0367_valid_perfect_square
0374_guess_number
0374_guess_number
0376_wiggle_subsequence
0376_wiggle_subsequence
0377_combination_sum_iv
0377_combination_sum_iv
0383_ransom_note
0383_ransom_note
0387_first_unique_character_in_a_string
0387_first_unique_character_in_a_string
0389_find_the_difference
0389_find_the_difference
0392_is_subsequence
0392_is_subsequence
0394_decode_string
0394_decode_string
0404_sum_of_left_leaves
0404_sum_of_left_leaves
0409_longest_palindrome
0409_longest_palindrome
0413_arithmetic_slices
0413_arithmetic_slices
0417_pacific_atlantic_water_flow
0417_pacific_atlantic_water_flow
0424_longest_repeating_character_replacement
0424_longest_repeating_character_replacement
0433_minimum_genetic_mutation
0433_minimum_genetic_mutation
0438_find_all_anagrams_in_a_string
0438_find_all_anagrams_in_a_string
0441_arranging_coins
0441_arranging_coins
0496_next_greater_element_i
0496_next_greater_element_i
View all files
You can’t perform that action at this time.