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
Accelerator
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 }}
optimizecompile
/
leetcode
Public
forked from
begeekmyfriend/leetcode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
386 Commits
386 Commits
0001_two_sum
0001_two_sum
0002_add_two_numbers
0002_add_two_numbers
0003_longest_substring_without_repeat
0003_longest_substring_without_repeat
0004_median_of_two_sorted_array
0004_median_of_two_sorted_array
0005_longest_palindromic_substring
0005_longest_palindromic_substring
0006_zigzag_conversion
0006_zigzag_conversion
0007_reverse_integer
0007_reverse_integer
0008_atoi
0008_atoi
0009_palindrome_number
0009_palindrome_number
0010_regular_expression_matching
0010_regular_expression_matching
0011_container_with_most_water
0011_container_with_most_water
0012_roman_numeral
0012_roman_numeral
0013_roman_to_integer
0013_roman_to_integer
0014_longest_common_prefix
0014_longest_common_prefix
0015_three_sum
0015_three_sum
0016_three_sum_closest
0016_three_sum_closest
0017_letter_combinations_of_a_phone_number
0017_letter_combinations_of_a_phone_number
0018_four_sum
0018_four_sum
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
0022_generate_parathesis
0022_generate_parathesis
0023_merge_k_sorted_lists
0023_merge_k_sorted_lists
0024_swap_nodes_in_pairs
0024_swap_nodes_in_pairs
0025_reverse_nodes_in_k_group
0025_reverse_nodes_in_k_group
0026_remove_duplicates_from_sorted_array
0026_remove_duplicates_from_sorted_array
0027_remove_element
0027_remove_element
0028_implement_strstr
0028_implement_strstr
0029_divide_two_integers
0029_divide_two_integers
0030_substring_with_concatenation_of_all_words
0030_substring_with_concatenation_of_all_words
0031_next_permutation
0031_next_permutation
0032_longest_valid_parentheses
0032_longest_valid_parentheses
0033_search_in_rotated_sorted_array
0033_search_in_rotated_sorted_array
0034_search_for_a_range
0034_search_for_a_range
0035_search_insert_position
0035_search_insert_position
0036_valid_sudoku
0036_valid_sudoku
0037_sudoku_solver
0037_sudoku_solver
0038_count_and_say
0038_count_and_say
0039_combination_sum
0039_combination_sum
0040_combination_sum_ii
0040_combination_sum_ii
0041_first_missing_positive
0041_first_missing_positive
0042_trapping_rain_water
0042_trapping_rain_water
0043_multiply_strings
0043_multiply_strings
0044_wildcard_matching
0044_wildcard_matching
0045_jump_game_ii
0045_jump_game_ii
0046_permutations
0046_permutations
0047_permutations_ii
0047_permutations_ii
0048_rotate_image
0048_rotate_image
0049_group_anagrams
0049_group_anagrams
0050_pow
0050_pow
0051_n_queens
0051_n_queens
0052_n_queens_ii
0052_n_queens_ii
0053_maximum_subarray
0053_maximum_subarray
0054_spiral_matrix
0054_spiral_matrix
0055_jump_game
0055_jump_game
0056_merge_intervals
0056_merge_intervals
0057_insert_interval
0057_insert_interval
0058_length_of_last_word
0058_length_of_last_word
0059_spiral_matrix_ii
0059_spiral_matrix_ii
0060_permutation_sequence
0060_permutation_sequence
0061_rotate_list
0061_rotate_list
0062_unique_path
0062_unique_path
0063_unique_paths_ii
0063_unique_paths_ii
0064_minumum_path_sum
0064_minumum_path_sum
0065_valid_number
0065_valid_number
0066_plus_one
0066_plus_one
0067_add_binary
0067_add_binary
0068_text_justification
0068_text_justification
0069_sqrt
0069_sqrt
0070_climbing_stairs
0070_climbing_stairs
0071_simplify_path
0071_simplify_path
0072_edit_distance
0072_edit_distance
0073_set_matrix_zeroes
0073_set_matrix_zeroes
0074_search_a_2d_matrix
0074_search_a_2d_matrix
0075_sort_colors
0075_sort_colors
0076_minimum_window_substring
0076_minimum_window_substring
0077_combinations
0077_combinations
0078_subsets
0078_subsets
0079_word_search
0079_word_search
0080_remove_duplicates_from_sorted_array_ii
0080_remove_duplicates_from_sorted_array_ii
0081_search_in_rotated_sorted_array_ii
0081_search_in_rotated_sorted_array_ii
0082_remove_duplicates_from_sorted_list_ii
0082_remove_duplicates_from_sorted_list_ii
0083_remove_duplicates_from_sorted_list
0083_remove_duplicates_from_sorted_list
0084_largest_rectangle_in_histogram
0084_largest_rectangle_in_histogram
0085_maximal_rectangle
0085_maximal_rectangle
0086_partition_list
0086_partition_list
0087_scramble_string
0087_scramble_string
0088_merge_sorted_array
0088_merge_sorted_array
0089_gray_code
0089_gray_code
0090_subsets_ii
0090_subsets_ii
0091_decode_ways
0091_decode_ways
0092_reverse_linked_list_ii
0092_reverse_linked_list_ii
0093_restore_ip_addresses
0093_restore_ip_addresses
0094_binary_tree_inorder_traversal
0094_binary_tree_inorder_traversal
0095_unique_binary_search_trees_ii
0095_unique_binary_search_trees_ii
0096_unique_binary_search_trees
0096_unique_binary_search_trees
0097_interleaving_string
0097_interleaving_string
0098_validate_binary_search_tree
0098_validate_binary_search_tree
0099_recover_binary_search_tree
0099_recover_binary_search_tree
0100_same_tree
0100_same_tree
View all files
Repository files navigation
README
License
More
items
LEETCODE SOLUTIONS
Easy and Understandable C/C++ Solutions of Some Leetcode Questions.
About
LeetCode in pure C
Resources
Readme
License
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.