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
Type
/
to 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 }}
Heepo
/
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
102 Commits
102 Commits
.gitignore
.gitignore
100. Same Tree.cpp
100. Same Tree.cpp
102. Binary Tree Level Order Traversal.cpp
102. Binary Tree Level Order Traversal.cpp
110. Balanced Binary Tree.cpp
110. Balanced Binary Tree.cpp
1110. Delete Nodes And Return Forest.cpp
1110. Delete Nodes And Return Forest.cpp
113. Path Sum II.cpp
113. Path Sum II.cpp
114. Flatten Binary Tree to Linked List.cpp
114. Flatten Binary Tree to Linked List.cpp
1145. Binary Tree Coloring Game.cpp
1145. Binary Tree Coloring Game.cpp
116. Populating Next Right Pointers in Each Node.cpp
116. Populating Next Right Pointers in Each Node.cpp
124. Binary Tree Maximum Path Sum.cpp
124. Binary Tree Maximum Path Sum.cpp
1296. Divide Array in Sets of K Consecutive Numbers.cpp
1296. Divide Array in Sets of K Consecutive Numbers.cpp
1305. All Elements in Two Binary Search Trees.cpp
1305. All Elements in Two Binary Search Trees.cpp
131. Palindrome Partitioning.cpp
131. Palindrome Partitioning.cpp
1339. Maximum Product of Splitted Binary Tree.cpp
1339. Maximum Product of Splitted Binary Tree.cpp
1382. Balance a Binary Search Tree.cpp
1382. Balance a Binary Search Tree.cpp
1406. Stone Game III.cpp
1406. Stone Game III.cpp
142. Linked List Cycle II.cpp
142. Linked List Cycle II.cpp
1443. Minimum Time to Collect All Apples in a Tree.cpp
1443. Minimum Time to Collect All Apples in a Tree.cpp
145. Binary Tree Postorder Traversal.cpp
145. Binary Tree Postorder Traversal.cpp
1457. Pseudo-Palindromic Paths in a Binary Tree.cpp
1457. Pseudo-Palindromic Paths in a Binary Tree.cpp
146. LRU Cache.cpp
146. LRU Cache.cpp
148. Sort List.cpp
148. Sort List.cpp
1483. Kth Ancestor of a Tree Node.cpp
1483. Kth Ancestor of a Tree Node.cpp
1530. Number of Good Leaf Nodes Pairs.cpp
1530. Number of Good Leaf Nodes Pairs.cpp
1872. Stone Game VIII.cpp
1872. Stone Game VIII.cpp
2. Add Two Numbers.cpp
2. Add Two Numbers.cpp
207. Course Schedule.cpp
207. Course Schedule.cpp
208. Implement Trie (Prefix Tree).cpp
208. Implement Trie (Prefix Tree).cpp
21. Merge Two Sorted Lists.cpp
21. Merge Two Sorted Lists.cpp
210. Course Schedule II.cpp
210. Course Schedule II.cpp
218. The Skyline Problem.cpp
218. The Skyline Problem.cpp
23. Merge k Sorted Lists.cpp
23. Merge k Sorted Lists.cpp
239. Sliding Window Maximum.cpp
239. Sliding Window Maximum.cpp
295. Find Median from Data Stream.cpp
295. Find Median from Data Stream.cpp
297. Serialize and Deserialize Binary Tree.cpp
297. Serialize and Deserialize Binary Tree.cpp
307. Range Sum Query - Mutable.cpp
307. Range Sum Query - Mutable.cpp
315. Count of Smaller Numbers After Self.cpp
315. Count of Smaller Numbers After Self.cpp
332. Reconstruct Itinerary.cpp
332. Reconstruct Itinerary.cpp
4. Median of Two Sorted Arrays.cpp
4. Median of Two Sorted Arrays.cpp
404. Sum of Left Leaves.cpp
404. Sum of Left Leaves.cpp
432. All O`one Data Structure.cpp
432. All O`one Data Structure.cpp
449. Serialize and Deserialize BST.cpp
449. Serialize and Deserialize BST.cpp
450. Delete Node in a BST.cpp
450. Delete Node in a BST.cpp
460. LFU Cache.cpp
460. LFU Cache.cpp
486. Predict the Winner.cpp
486. Predict the Winner.cpp
530. Minimum Absolute Difference in BST.cpp
530. Minimum Absolute Difference in BST.cpp
543. Diameter of Binary Tree.cpp
543. Diameter of Binary Tree.cpp
547. Number of Provinces.cpp
547. Number of Provinces.cpp
606. Construct String from Binary Tree.cpp
606. Construct String from Binary Tree.cpp
61. Rotate List.cpp
61. Rotate List.cpp
617. Merge Two Binary Trees.cpp
617. Merge Two Binary Trees.cpp
637. Average of Levels in Binary Tree.cpp
637. Average of Levels in Binary Tree.cpp
652. Find Duplicate Subtrees.cpp
652. Find Duplicate Subtrees.cpp
654. Maximum Binary Tree.cpp
654. Maximum Binary Tree.cpp
655. Print Binary Tree.cpp
655. Print Binary Tree.cpp
662. Maximum Width of Binary Tree.cpp
662. Maximum Width of Binary Tree.cpp
669. Trim a Binary Search Tree.cpp
669. Trim a Binary Search Tree.cpp
671. Second Minimum Node In a Binary Tree.cpp
671. Second Minimum Node In a Binary Tree.cpp
677. Map Sum Pairs.cpp
677. Map Sum Pairs.cpp
684. Redundant Connection.cpp
684. Redundant Connection.cpp
685. Redundant Connection II.cpp
685. Redundant Connection II.cpp
687. Longest Univalue Path.cpp
687. Longest Univalue Path.cpp
690. Employee Importance.cpp
690. Employee Importance.cpp
699. Falling Squares.cpp
699. Falling Squares.cpp
707. Design Linked List.cpp
707. Design Linked List.cpp
715. Range Module.cpp
715. Range Module.cpp
725. Split Linked List in Parts.cpp
725. Split Linked List in Parts.cpp
732. My Calendar III.cpp
732. My Calendar III.cpp
735. Asteroid Collision.cpp
735. Asteroid Collision.cpp
745. Prefix and Suffix Search.cpp
745. Prefix and Suffix Search.cpp
763. Partition Labels.cpp
763. Partition Labels.cpp
792. Number of Matching Subsequences.cpp
792. Number of Matching Subsequences.cpp
817. Linked List Components.cpp
817. Linked List Components.cpp
863. All Nodes Distance K in Binary Tree.cpp
863. All Nodes Distance K in Binary Tree.cpp
865. Smallest Subtree with all the Deepest Nodes.cpp
865. Smallest Subtree with all the Deepest Nodes.cpp
877. Stone Game.cpp
877. Stone Game.cpp
889. Construct Binary Tree from Preorder and Postorder Traversal.cpp
889. Construct Binary Tree from Preorder and Postorder Traversal.cpp
894. All Possible Full Binary Trees.cpp
894. All Possible Full Binary Trees.cpp
912_sort_an_array.cpp
912_sort_an_array.cpp
979. Distribute Coins in Binary Tree.cpp
979. Distribute Coins in Binary Tree.cpp
98. Validate Binary Search Tree.cpp
98. Validate Binary Search Tree.cpp
README.md
README.md
[Top Interview 150] 121. Best Time to Buy and Sell Stock.cpp
[Top Interview 150] 121. Best Time to Buy and Sell Stock.cpp
[Top Interview 150] 122. Best Time to Buy and Sell Stock II.cpp
[Top Interview 150] 122. Best Time to Buy and Sell Stock II.cpp
[Top Interview 150] 169. Majority Element.cpp
[Top Interview 150] 169. Majority Element.cpp
[Top Interview 150] 189. Rotate Array.cpp
[Top Interview 150] 189. Rotate Array.cpp
[Top Interview 150] 26. Remove Duplicates from Sorted Array.cpp
[Top Interview 150] 26. Remove Duplicates from Sorted Array.cpp
[Top Interview 150] 27. Remove Element.cpp
[Top Interview 150] 27. Remove Element.cpp
[Top Interview 150] 274. H-Index.cpp
[Top Interview 150] 274. H-Index.cpp
[Top Interview 150] 45. Jump Game II.cpp
[Top Interview 150] 45. Jump Game II.cpp
[Top Interview 150] 55. Jump Game.cpp
[Top Interview 150] 55. Jump Game.cpp
[Top Interview 150] 80. Remove Duplicates from Sorted Array II.cpp
[Top Interview 150] 80. Remove Duplicates from Sorted Array II.cpp
[Top Interview 150] 88. Merge Sorted Array.cpp
[Top Interview 150] 88. Merge Sorted Array.cpp
View all files
Repository files navigation
README
More
items
leetcode
leetcode problems solutions
About
leetcode problems solutions
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.