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 }}
sazzadkhan20
/
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
7 Commits
7 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.gitignore
.gitignore
Add_Two_Numbers.cpp
Add_Two_Numbers.cpp
Backspace_String_Compare.cpp
Backspace_String_Compare.cpp
Balanced_Binary_Tree.cpp
Balanced_Binary_Tree.cpp
Basic_Calculator_II.cpp
Basic_Calculator_II.cpp
Binary_Tree_Right_Side_View.cpp
Binary_Tree_Right_Side_View.cpp
Binary_Tree_Tilt.cpp
Binary_Tree_Tilt.cpp
Climbing_Stairs.cpp
Climbing_Stairs.cpp
Coin_Change_II.cpp
Coin_Change_II.cpp
Contains_Duplicate.cpp
Contains_Duplicate.cpp
Convert_Sorted_Array_to_Binary_Search_Tree.cpp
Convert_Sorted_Array_to_Binary_Search_Tree.cpp
Count_Sub_Islands.cpp
Count_Sub_Islands.cpp
Delete_Node_in_a_Linked_List.cpp
Delete_Node_in_a_Linked_List.cpp
Design_Browser_History.cpp
Design_Browser_History.cpp
Design_Linked_List.cpp
Design_Linked_List.cpp
Diameter_of_Binary_Tree.cpp
Diameter_of_Binary_Tree.cpp
Evaluate_Boolean_Binary_Tree.cpp
Evaluate_Boolean_Binary_Tree.cpp
Fibonacci_Number.cpp
Fibonacci_Number.cpp
Find_Pivot_Index.cpp
Find_Pivot_Index.cpp
Find_if_Path_Exists_in_Graph.cpp
Find_if_Path_Exists_in_Graph.cpp
Flood_Fill.cpp
Flood_Fill.cpp
House_Robber.cpp
House_Robber.cpp
Implement_Queue_using_Stacks.cpp
Implement_Queue_using_Stacks.cpp
Implement_Stack_using_Queues.cpp
Implement_Stack_using_Queues.cpp
Increasing_Order_Search_Tree.cpp
Increasing_Order_Search_Tree.cpp
Intersection_of_Two_Linked_Lists.cpp
Intersection_of_Two_Linked_Lists.cpp
Invert_Binary_Tree.cpp
Invert_Binary_Tree.cpp
Island_Perimeter.cpp
Island_Perimeter.cpp
Keys_and_Rooms.cpp
Keys_and_Rooms.cpp
Kth_Smallest_Element_in_a_BST.cpp
Kth_Smallest_Element_in_a_BST.cpp
Leef-Similar_Trees.cpp
Leef-Similar_Trees.cpp
Left_and_Right_Sum_Differences.cpp
Left_and_Right_Sum_Differences.cpp
Linked_List_Cycle.cpp
Linked_List_Cycle.cpp
Max_Area_of_Island.cpp
Max_Area_of_Island.cpp
Maximum_Number_of_Fish_in_a_Grid.cpp
Maximum_Number_of_Fish_in_a_Grid.cpp
Maximum_Product_of_Two_Elements_in_an_Array.cpp
Maximum_Product_of_Two_Elements_in_an_Array.cpp
Merge_Nodes_in_Between_Zeros.cpp
Merge_Nodes_in_Between_Zeros.cpp
Middle_of_the_Linked_List.cpp
Middle_of_the_Linked_List.cpp
Min_Cost_Climbing_Stairs.cpp
Min_Cost_Climbing_Stairs.cpp
Min_Stack.cpp
Min_Stack.cpp
Minimum_Absolute_Difference_in_BST.cpp
Minimum_Absolute_Difference_in_BST.cpp
Minimum_Distance_Between_BST_Nodes.cpp
Minimum_Distance_Between_BST_Nodes.cpp
N-th_Tribonacci_Number.cpp
N-th_Tribonacci_Number.cpp
Network_Delay_Time.cpp
Network_Delay_Time.cpp
Number_of_Closed_Islands.cpp
Number_of_Closed_Islands.cpp
Number_of_Enclaves.cpp
Number_of_Enclaves.cpp
Number_of_Islands.cpp
Number_of_Islands.cpp
Partition_Equal_Subset_Sum.cpp
Partition_Equal_Subset_Sum.cpp
Path_Sum.cpp
Path_Sum.cpp
README.md
README.md
Range_Sum_of_BST.cpp
Range_Sum_of_BST.cpp
Remove_All_Adjacent_Duplicates_In_String.cpp
Remove_All_Adjacent_Duplicates_In_String.cpp
Remove_Duplicates_from_Sorted_List.cpp
Remove_Duplicates_from_Sorted_List.cpp
Remove_Linked_List_Elements.cpp
Remove_Linked_List_Elements.cpp
Remove_Nth_Node_From_End_of_List.cpp
Remove_Nth_Node_From_End_of_List.cpp
Reverse_Linked_List.cpp
Reverse_Linked_List.cpp
Reverse_Odd_Levels_of_Binary_Tree.cpp
Reverse_Odd_Levels_of_Binary_Tree.cpp
Root_Equals_Sum_of_Children.cpp
Root_Equals_Sum_of_Children.cpp
Same_Tree.cpp
Same_Tree.cpp
Search_in_a_Binary_Search_Tree.cpp
Search_in_a_Binary_Search_Tree.cpp
Simplify_Path.cpp
Simplify_Path.cpp
Sort_an_Array.cpp
Sort_an_Array.cpp
Swapping_Nodes_in_a_Linked_List.cpp
Swapping_Nodes_in_a_Linked_List.cpp
Target_Sum.cpp
Target_Sum.cpp
Top_K_Frequent_Elements.cpp
Top_K_Frequent_Elements.cpp
Two_Sum.cpp
Two_Sum.cpp
Two_Sum_IV-Input_is_a_BST.cpp
Two_Sum_IV-Input_is_a_BST.cpp
Univalued_Binary_Tree.cpp
Univalued_Binary_Tree.cpp
Valid_Anargram.cpp
Valid_Anargram.cpp
Valid_Palindrome.cpp
Valid_Palindrome.cpp
Valid_Parentheses.cpp
Valid_Parentheses.cpp
Valid_Parenthesis_String.cpp
Valid_Parenthesis_String.cpp
input.txt
input.txt
output.txt
output.txt
View all files
Repository files navigation
README
More
items
Leetcode
Solutions and practice for LeetCode coding problems.
About
Solutions and practice for LeetCode coding problems.
Topics
avl-tree
dsu
dynamic-programming
graph
hash-table
heap
tree
Resources
Readme
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.