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 }}
sureshmangs
/
Code
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
12
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
Files
Expand file tree
master
Breadcrumbs
Code
/
competitive programming
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Code
/
competitive programming
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
2020-August-Challenge
2020-August-Challenge
2020-December-Challenge
2020-December-Challenge
2020-July-Challenge
2020-July-Challenge
2020-June-Challenge
2020-June-Challenge
2020-November-Challenge
2020-November-Challenge
2020-October-Challenge
2020-October-Challenge
2020-September-Challenge
2020-September-Challenge
2021-June-Challenge
2021-June-Challenge
1. Two Sum.cpp
1. Two Sum.cpp
100. Same Tree.cpp
100. Same Tree.cpp
1002. Find Common Characters.cpp
1002. Find Common Characters.cpp
1004. Max Consecutive Ones III.cpp
1004. Max Consecutive Ones III.cpp
1007. Minimum Domino Rotations For Equal Row.cpp
1007. Minimum Domino Rotations For Equal Row.cpp
1009. Complement of Base 10 Integer.cpp
1009. Complement of Base 10 Integer.cpp
101. Symmetric Tree.cpp
101. Symmetric Tree.cpp
1010. Pairs of Songs With Total Durations Divisible by 60.cpp
1010. Pairs of Songs With Total Durations Divisible by 60.cpp
102. Binary Tree Level Order Traversal.cpp
102. Binary Tree Level Order Traversal.cpp
1020. Number of Enclaves.cpp
1020. Number of Enclaves.cpp
1021. Remove Outermost Parentheses.cpp
1021. Remove Outermost Parentheses.cpp
1022. Sum of Root To Leaf Binary Numbers.cpp
1022. Sum of Root To Leaf Binary Numbers.cpp
1025. Divisor Game.cpp
1025. Divisor Game.cpp
1029. Two City Scheduling.cpp
1029. Two City Scheduling.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
1032. Stream of Characters.cpp
1032. Stream of Characters.cpp
1037. Valid Boomerang.cpp
1037. Valid Boomerang.cpp
104. Maximum Depth of Binary Tree.cpp
104. Maximum Depth of Binary Tree.cpp
1041. Robot Bounded In Circle.cpp
1041. Robot Bounded In Circle.cpp
1046. Last Stone Weight.cpp
1046. Last Stone Weight.cpp
1047. Remove All Adjacent Duplicates In String.cpp
1047. Remove All Adjacent Duplicates In String.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
1051. Height Checker.cpp
1051. Height Checker.cpp
106. Construct Binary Tree from Inorder and Postorder Traversal.cpp
106. Construct Binary Tree from Inorder and Postorder Traversal.cpp
107. Binary Tree Level Order Traversal II.cpp
107. Binary Tree Level Order Traversal II.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
1091. Shortest Path in Binary Matrix.cpp
1091. Shortest Path in Binary Matrix.cpp
1094. Car Pooling.cpp
1094. Car Pooling.cpp
11. Container With Most Water.cpp
11. Container With Most Water.cpp
110. Balanced Binary Tree.cpp
110. Balanced Binary Tree.cpp
1103. Distribute Candies to People.cpp
1103. Distribute Candies to People.cpp
1108. Defanging an IP Address.cpp
1108. Defanging an IP Address.cpp
1122. Relative Sort Array.cpp
1122. Relative Sort Array.cpp
113. Path Sum II.cpp
113. Path Sum II.cpp
1137. N-th Tribonacci Number.cpp
1137. N-th Tribonacci Number.cpp
114. Flatten Binary Tree to Linked List.cpp
114. Flatten Binary Tree to Linked List.cpp
1143. Longest Common Subsequence.cpp
1143. Longest Common Subsequence.cpp
116. Populating Next Right Pointers in Each Node.cpp
116. Populating Next Right Pointers in Each Node.cpp
1160. Find Words That Can Be Formed by Characters.cpp
1160. Find Words That Can Be Formed by Characters.cpp
117. Populating Next Right Pointers in Each Node II.cpp
117. Populating Next Right Pointers in Each Node II.cpp
1170. Compare Strings by Frequency of the Smallest Character.cpp
1170. Compare Strings by Frequency of the Smallest Character.cpp
118. Pascal's Triangle.cpp
118. Pascal's Triangle.cpp
1189. Maximum Number of Balloons.cpp
1189. Maximum Number of Balloons.cpp
119. Pascal's Triangle II.cpp
119. Pascal's Triangle II.cpp
1192. Critical Connections in a Network.cpp
1192. Critical Connections in a Network.cpp
12. Integer to Roman.cpp
12. Integer to Roman.cpp
1202. Smallest String With Swaps.cpp
1202. Smallest String With Swaps.cpp
1209. Remove All Adjacent Duplicates in String II.cpp
1209. Remove All Adjacent Duplicates in String II.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
1221. Split a String in Balanced Strings.cpp
1221. Split a String in Balanced Strings.cpp
123. Best Time to Buy and Sell Stock III.cpp
123. Best Time to Buy and Sell Stock III.cpp
1232. Check If It Is a Straight Line.cpp
1232. Check If It Is a Straight Line.cpp
124. Binary Tree Maximum Path Sum.cpp
124. Binary Tree Maximum Path Sum.cpp
125. Valid Palindrome.cpp
125. Valid Palindrome.cpp
1252. Cells with Odd Values in a Matrix.cpp
1252. Cells with Odd Values in a Matrix.cpp
1266. Minimum Time Visiting All Points.cpp
1266. Minimum Time Visiting All Points.cpp
128. Longest Consecutive Sequence.cpp
128. Longest Consecutive Sequence.cpp
1286. Iterator for Combination.cpp
1286. Iterator for Combination.cpp
1288. Remove Covered Intervals.cpp
1288. Remove Covered Intervals.cpp
129. Sum Root to Leaf Numbers.cpp
129. Sum Root to Leaf Numbers.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1291. Sequential Digits.cpp
1291. Sequential Digits.cpp
1295. Find Numbers with Even Number of Digits.cpp
1295. Find Numbers with Even Number of Digits.cpp
1299. Replace Elements with Greatest Element on Right Side.cpp
1299. Replace Elements with Greatest Element on Right Side.cpp
13. Roman to Integer.cpp
13. Roman to Integer.cpp
130. Surrounded Regions.cpp
130. Surrounded Regions.cpp
1302. Deepest Leaves Sum.cpp
1302. Deepest Leaves Sum.cpp
1304. Find N Unique Integers Sum up to Zero.cpp
1304. Find N Unique Integers Sum up to Zero.cpp
1305. All Elements in Two Binary Search Trees.cpp
1305. All Elements in Two Binary Search Trees.cpp
1309. Decrypt String from Alphabet to Integer Mapping.cpp
1309. Decrypt String from Alphabet to Integer Mapping.cpp
131. Palindrome Partitioning.cpp
131. Palindrome Partitioning.cpp
1313. Decompress Run-Length Encoded List.cpp
1313. Decompress Run-Length Encoded List.cpp
132. Palindrome Partitioning II.cpp
132. Palindrome Partitioning II.cpp
1323. Maximum 69 Number.cpp
1323. Maximum 69 Number.cpp
133. Clone Graph.cpp
133. Clone Graph.cpp
1332. Remove Palindromic Subsequences.cpp
1332. Remove Palindromic Subsequences.cpp
1337. The K Weakest Rows in a Matrix.cpp
1337. The K Weakest Rows in a Matrix.cpp
134. Gas Station.cpp
134. Gas Station.cpp
1342. Number of Steps to Reduce a Number to Zero.cpp
1342. Number of Steps to Reduce a Number to Zero.cpp
1344. Angle Between Hands of a Clock.cpp
1344. Angle Between Hands of a Clock.cpp
1347. Minimum Number of Steps to Make Two Strings Anagram.cpp
1347. Minimum Number of Steps to Make Two Strings Anagram.cpp
135. Candy.cpp
135. Candy.cpp
1351. Count Negative Numbers in a Sorted Matrix.cpp
1351. Count Negative Numbers in a Sorted Matrix.cpp
136. Single Number.cpp
136. Single Number.cpp
1365. How Many Numbers Are Smaller Than the Current Number.cpp
1365. How Many Numbers Are Smaller Than the Current Number.cpp
137. Single Number II.cpp
137. Single Number II.cpp
1370. Increasing Decreasing String.cpp
1370. Increasing Decreasing String.cpp
1374. Generate a String With Characters That Have Odd Counts.cpp
1374. Generate a String With Characters That Have Odd Counts.cpp
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree.cpp
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree.cpp
138. Copy List with Random Pointer.cpp
138. Copy List with Random Pointer.cpp
1380. Lucky Numbers in a Matrix.cpp
1380. Lucky Numbers in a Matrix.cpp
View all files
README.MD
LeetCode problem solutions
LeetCode:
LeetCode
You can’t perform that action at this time.