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 }}
cjhgo
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
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
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
277 Commits
277 Commits
Folders and files
Name
Name
Last commit message
Last commit date
golang
golang
others
others
sword_to_offer
sword_to_offer
.gitignore
.gitignore
000_note.md
000_note.md
001_Two_Sum.cpp
001_Two_Sum.cpp
002_add_two_numbers.cpp
002_add_two_numbers.cpp
003_Longest_Substring_Without_Repeating_Characters.cpp
003_Longest_Substring_Without_Repeating_Characters.cpp
004_Median_of_Two_Sorted_Arrays.cpp
004_Median_of_Two_Sorted_Arrays.cpp
005_Longest_Palindromic_Substring.cpp
005_Longest_Palindromic_Substring.cpp
006_ZigZag_Conversion.cpp
006_ZigZag_Conversion.cpp
007_Reverse_Integer.cpp
007_Reverse_Integer.cpp
008_String_to_Integer.cpp
008_String_to_Integer.cpp
009_Palindrome_Number.cpp
009_Palindrome_Number.cpp
010_Regular_Expression_Matching.cpp
010_Regular_Expression_Matching.cpp
011_Container_With_Most_Water.cpp
011_Container_With_Most_Water.cpp
012_Integer_to_Roman.cpp
012_Integer_to_Roman.cpp
014_Longest_Common_Prefix.cpp
014_Longest_Common_Prefix.cpp
015_3Sum.cpp
015_3Sum.cpp
016_3Sum_Closest.cpp
016_3Sum_Closest.cpp
017_Letter_Combinations_of_a_Phone_Number.cpp
017_Letter_Combinations_of_a_Phone_Number.cpp
018_4Sum.cpp
018_4Sum.cpp
019_Remove_Nth_Node_From_End_of_List.cpp
019_Remove_Nth_Node_From_End_of_List.cpp
020_Valid_Parentheses.cpp
020_Valid_Parentheses.cpp
021_Merge_Two_Sorted_Lists.cpp
021_Merge_Two_Sorted_Lists.cpp
022_Generate_Parentheses.cpp
022_Generate_Parentheses.cpp
024_Swap_Nodes_in_Pairs.cpp
024_Swap_Nodes_in_Pairs.cpp
026_Remove_Duplicates_from_Sorted_Array.cpp
026_Remove_Duplicates_from_Sorted_Array.cpp
027_Remove_Element.cpp
027_Remove_Element.cpp
028_Implement_strStr.cpp
028_Implement_strStr.cpp
031_Next_Permutation.cpp
031_Next_Permutation.cpp
032_Longest_Valid_Parentheses.cpp
032_Longest_Valid_Parentheses.cpp
035_Search_Insert_Position.cpp
035_Search_Insert_Position.cpp
037_Sudoku_Solver.cpp
037_Sudoku_Solver.cpp
038_Count_and_Say.cpp
038_Count_and_Say.cpp
039_Combination_Sum.cpp
039_Combination_Sum.cpp
046_Permutations.cpp
046_Permutations.cpp
047_PermutationsII.cpp
047_PermutationsII.cpp
049_Group_Anagrams.cpp
049_Group_Anagrams.cpp
053_Maximum_Subarray.cpp
053_Maximum_Subarray.cpp
061_Rotate_List.cpp
061_Rotate_List.cpp
070_Climbing_Stairs.cpp
070_Climbing_Stairs.cpp
071_Simplify_Path.cpp
071_Simplify_Path.cpp
074_Search_a_2D_Matrix.cpp
074_Search_a_2D_Matrix.cpp
075_Sort_Colors.cpp
075_Sort_Colors.cpp
076_Minimum_Window_Substring.cpp
076_Minimum_Window_Substring.cpp
078_Subsets.cpp
078_Subsets.cpp
079_Word_Search.cpp
079_Word_Search.cpp
080_Remove_Duplicates_from_Sorted_Array_II.cpp
080_Remove_Duplicates_from_Sorted_Array_II.cpp
092_Reverse_Linked_List_II.cpp
092_Reverse_Linked_List_II.cpp
093_Restore_IP_Addresses.cpp
093_Restore_IP_Addresses.cpp
120_Triangle.cpp
120_Triangle.cpp
121_Best_Time_to_Buy_and_Sell_Stock.cpp
121_Best_Time_to_Buy_and_Sell_Stock.cpp
122_Best_Time_to_Buy_and_Sell_Stock_II.cpp
122_Best_Time_to_Buy_and_Sell_Stock_II.cpp
123_Best_Time_to_Buy_and_Sell_Stock_III.cpp
123_Best_Time_to_Buy_and_Sell_Stock_III.cpp
125_Valid_Palindrome.cpp
125_Valid_Palindrome.cpp
133_Clone_Graph.cpp
133_Clone_Graph.cpp
136_Single_Number.cpp
136_Single_Number.cpp
146_LRU_Cache.cpp
146_LRU_Cache.cpp
152_Maximum_Product_Subarray.cpp
152_Maximum_Product_Subarray.cpp
155_Min_Stack.cpp
155_Min_Stack.cpp
160_Intersection_of_Two_Linked_Lists.cpp
160_Intersection_of_Two_Linked_Lists.cpp
187_Repeated_DNA_Sequences.cpp
187_Repeated_DNA_Sequences.cpp
188_Best_Time_to_Buy_and_Sell_Stock_IV.cpp
188_Best_Time_to_Buy_and_Sell_Stock_IV.cpp
200_Number_of_Islands.cpp
200_Number_of_Islands.cpp
206_Reverse_Linked_List.cpp
206_Reverse_Linked_List.cpp
207_Course_Schedule.cpp
207_Course_Schedule.cpp
208_Implement_Trie.cpp
208_Implement_Trie.cpp
215_Kth_Largest_Element_in_an_Array.cpp
215_Kth_Largest_Element_in_an_Array.cpp
226_Invert_Binary_Tree.cpp
226_Invert_Binary_Tree.cpp
233_Number_of_Digit_One.cpp
233_Number_of_Digit_One.cpp
235_Lowest_Common_Ancestor_of_a_Binary_Search_Tree.cpp
235_Lowest_Common_Ancestor_of_a_Binary_Search_Tree.cpp
236_Lowest_Common_Ancestor_of_a_Binary_Tree.cpp
236_Lowest_Common_Ancestor_of_a_Binary_Tree.cpp
238_Product_of_Array_Except_Self.cpp
238_Product_of_Array_Except_Self.cpp
240_Search_a_2D_Matrix_II.cpp
240_Search_a_2D_Matrix_II.cpp
268_Missing_Number.cpp
268_Missing_Number.cpp
274_H-Index.cpp
274_H-Index.cpp
282_Expression_Add_Operators.cpp
282_Expression_Add_Operators.cpp
287_Find_the_Duplicate_Number.cpp
287_Find_the_Duplicate_Number.cpp
300_Longest_Increasing_Subsequence.cpp
300_Longest_Increasing_Subsequence.cpp
310_Minimum_Height_Trees.cpp
310_Minimum_Height_Trees.cpp
312_Burst_Balloons.cpp
312_Burst_Balloons.cpp
322_Coin_Change.cpp
322_Coin_Change.cpp
332_Reconstruct_Itinerary.cpp
332_Reconstruct_Itinerary.cpp
338_Counting_Bits.cpp
338_Counting_Bits.cpp
341_Flatten_Nested_List_Iterator.cpp
341_Flatten_Nested_List_Iterator.cpp
347_Top_K_Frequent_Elements.cpp
347_Top_K_Frequent_Elements.cpp
355_Design_Twitter.cpp
355_Design_Twitter.cpp
376_Wiggle_Subsequence.cpp
376_Wiggle_Subsequence.cpp
394_Decode_String.cpp
394_Decode_String.cpp
399_Evaluate_Division.cpp
399_Evaluate_Division.cpp
409_Longest_Palindrome.cpp
409_Longest_Palindrome.cpp
416_Partition_Equal_Subset_Sum.cpp
416_Partition_Equal_Subset_Sum.cpp
438_Find_All_Anagrams_in_a_String.cpp
438_Find_All_Anagrams_in_a_String.cpp
462_MinimumMoves_to_Equal_Array_Elements.cpp
462_MinimumMoves_to_Equal_Array_Elements.cpp
483_Smallest_Good_Base.cpp
483_Smallest_Good_Base.cpp
493_Reverse_Pairs.cpp
493_Reverse_Pairs.cpp
494_Target_Sum.cpp
494_Target_Sum.cpp
496_Next_Greater_Element_I.cpp
496_Next_Greater_Element_I.cpp
513_Find_Bottom_Left_Tree_Value.cpp
513_Find_Bottom_Left_Tree_Value.cpp
View all files
Repository files navigation
README
More
items
leetcode
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
3
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.