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 }}
tjlcast
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
175 Commits
175 Commits
Folders and files
Name
Name
Last commit message
Last commit date
SegmentTree
SegmentTree
Sort
Sort
dp
dp
permutation
permutation
.gitignore
.gitignore
Add_Binary_67.java
Add_Binary_67.java
Add_Digits_258.java
Add_Digits_258.java
Add_Strings_415.py
Add_Strings_415.py
Add_and_Search_Word_-_Data_structure_design_211.java
Add_and_Search_Word_-_Data_structure_design_211.java
Arithmetic_Slices_413.java
Arithmetic_Slices_413.java
Arranging_Coins_441.java
Arranging_Coins_441.java
Balanced_Binary_Tree_110.java
Balanced_Binary_Tree_110.java
Basic_Calculator_II_227.java
Basic_Calculator_II_227.java
Battleships_in_a_Board_419.java
Battleships_in_a_Board_419.java
Best_Time_to_Buy_and_Sell_Stock_121. java
Best_Time_to_Buy_and_Sell_Stock_121. java
Best_Time_to_Buy_and_Sell_Stock_II_122.java
Best_Time_to_Buy_and_Sell_Stock_II_122.java
Best_Time_to_Buy_and_Sell_Stock_with_Cooldown_309.java
Best_Time_to_Buy_and_Sell_Stock_with_Cooldown_309.java
Binary_Search_Tree_Iterator_173.java
Binary_Search_Tree_Iterator_173.java
Binary_Tree_Inorder_Traversal_94.java
Binary_Tree_Inorder_Traversal_94.java
Binary_Tree_Level_Order_Traversal_II_107.java
Binary_Tree_Level_Order_Traversal_II_107.java
Binary_Tree_Maximum_Path_Sum_124. java
Binary_Tree_Maximum_Path_Sum_124. java
Binary_Tree_Paths_257.java
Binary_Tree_Paths_257.java
Binary_Tree_Postorder_Traversal_145.java
Binary_Tree_Postorder_Traversal_145.java
Binary_Tree_Preorder_Traversal_144. java
Binary_Tree_Preorder_Traversal_144. java
Binary_Tree_Right_Side_View_199.java
Binary_Tree_Right_Side_View_199.java
Binary_Tree_Zigzag_Level_Order_Traversal_103. java
Binary_Tree_Zigzag_Level_Order_Traversal_103. java
Bitwise_AND_of_Numbers_Range_201.java
Bitwise_AND_of_Numbers_Range_201.java
Bulb_Switcher_319.java
Bulb_Switcher_319.java
Bulls_and_Cows_299.java
Bulls_and_Cows_299.java
Climbing_Stairs_70.java
Climbing_Stairs_70.java
Clone_Graph_133.java
Clone_Graph_133.java
Coin_Change_322.java
Coin_Change_322.java
Combination_Sum_39.java
Combination_Sum_39.java
Combination_Sum_40.java
Combination_Sum_40.java
Combinations_77.java
Combinations_77.java
Compare_Version_Numbers_165.py
Compare_Version_Numbers_165.py
Contains_Duplicate_217.java
Contains_Duplicate_217.java
Contains_Duplicate_III_220.java
Contains_Duplicate_III_220.java
Contains_Duplicate_II_219.java
Contains_Duplicate_II_219.java
Convert_a_Numberto_Hexadecimal_405.java
Convert_a_Numberto_Hexadecimal_405.java
Count_Complete_Tree_Nodes_222.java
Count_Complete_Tree_Nodes_222.java
Count_Primes_204.java
Count_Primes_204.java
Count_and_Say_38.java
Count_and_Say_38.java
Course_Schedule_207.java
Course_Schedule_207.java
Course_Schedule_II_210.java
Course_Schedule_II_210.java
Delete_Node_in_a_Linked_List_237.java
Delete_Node_in_a_Linked_List_237.java
Divide_Two_Integers_29.java
Divide_Two_Integers_29.java
Evaluate_Reverse_Polish_Notation_150.java
Evaluate_Reverse_Polish_Notation_150.java
Excel_Sheet_Column_Number_171.py
Excel_Sheet_Column_Number_171.py
Excel_Sheet_Column_Title_168.py
Excel_Sheet_Column_Title_168.py
Factorial_Trailing_Zeroes_172.java
Factorial_Trailing_Zeroes_172.java
Find_Peak_Element_162. java
Find_Peak_Element_162. java
First_Bad_Version_278.java
First_Bad_Version_278.java
First_Missing_Positive_41.java
First_Missing_Positive_41.java
Fizz_Buzz_412.java
Fizz_Buzz_412.java
Game_of_Life_289.java
Game_of_Life_289.java
Gray_Code_89.java
Gray_Code_89.java
Group_Anagrams_49.java
Group_Anagrams_49.java
H-Index_274.java
H-Index_274.java
H-Index_II_275.java
H-Index_II_275.java
Implement_Queue_using_Stacks_232.java
Implement_Queue_using_Stacks_232.java
Implement_Stack_using_Queues_225.java
Implement_Stack_using_Queues_225.java
Implement_Trie_(Prefix_Tree)_208.java
Implement_Trie_(Prefix_Tree)_208.java
Implement_strStr_28.java
Implement_strStr_28.java
Insertion_Sort_List_147.java
Insertion_Sort_List_147.java
Intersection_of_Two_Arrays_349.py
Intersection_of_Two_Arrays_349.py
Intersection_of_Two_Arrays_II_350.py
Intersection_of_Two_Arrays_II_350.py
Intersection_of_Two_Linked_Lists_160. java
Intersection_of_Two_Linked_Lists_160. java
Invert_Binary_Tree_226.java
Invert_Binary_Tree_226.java
Island_Perimeter_463.java
Island_Perimeter_463.java
Isomorphic_Strings_205.java
Isomorphic_Strings_205.java
Jump_Game_55.java
Jump_Game_55.java
Kth_Largest_Element_in_an_Array_215.java
Kth_Largest_Element_in_an_Array_215.java
Kth_Smallest Element_in_a_BST_230.py
Kth_Smallest Element_in_a_BST_230.py
LRU_Cache_146. java
LRU_Cache_146. java
Largest_Number_179.java
Largest_Number_179.java
Length_of_Last_Word_58.java
Length_of_Last_Word_58.java
Linked_List_Cycle_141. java
Linked_List_Cycle_141. java
Linked_List_Cycle_141.java
Linked_List_Cycle_141.java
Linked_List_Cycle_II_142. java
Linked_List_Cycle_II_142. java
ListNode.java
ListNode.java
Longest_Common_Prefix_14. py
Longest_Common_Prefix_14. py
Longest_Increasing_Subsequence_300.java
Longest_Increasing_Subsequence_300.java
Longest_Palindrome_409.java
Longest_Palindrome_409.java
Lowest_Common_Ancestor_of_a_Binary_Search_Tree_235.java
Lowest_Common_Ancestor_of_a_Binary_Search_Tree_235.java
Lowest_Common_Ancestor_of_a_Binary_Tree_236.java
Lowest_Common_Ancestor_of_a_Binary_Tree_236.java
Majority_Element_169.py
Majority_Element_169.py
Max_Points_on_a_Line_149. java
Max_Points_on_a_Line_149. java
Maximal_Square_221.java
Maximal_Square_221.java
Maximum_Product_Subarray_152. java
Maximum_Product_Subarray_152. java
Maximum_Product_Subarray_152.java
Maximum_Product_Subarray_152.java
Maximum_Product_of_Word_Lengths_318.java
Maximum_Product_of_Word_Lengths_318.java
Maximum_Subarray_53.java
Maximum_Subarray_53.java
Median_of_Two_Sorted_Arrays_4.java
Median_of_Two_Sorted_Arrays_4.java
Merge_Sorted_Array_88..java
Merge_Sorted_Array_88..java
Min_Stack_155.java
Min_Stack_155.java
Minimum_Path_Sum_64.java
Minimum_Path_Sum_64.java
Minimum_Size_Subarray_Sum_209.java
Minimum_Size_Subarray_Sum_209.java
Missing_Number_268.java
Missing_Number_268.java
Move_Zeroes_283.java
Move_Zeroes_283.java
View all files
Repository files navigation
README
More
items
leetcode
my algrithm for leetcode
About
my algrithm for leetcode
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.