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 }}
rootkonda
/
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
430 Commits
430 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1. Two Sum.cpp
1. Two Sum.cpp
100. Same Tree.cpp
100. Same Tree.cpp
1008. Construct Binary Search Tree from Preorder Traversal.cpp
1008. Construct Binary Search Tree from Preorder Traversal.cpp
1011. Capacity To Ship Packages Within D Days.cpp
1011. Capacity To Ship Packages Within D Days.cpp
1015. Smallest Integer Divisible by K.cpp
1015. Smallest Integer Divisible by K.cpp
1020. Number of Enclaves.cpp
1020. Number of Enclaves.cpp
1027. Longest Arithmetic Sequence.cpp
1027. Longest Arithmetic Sequence.cpp
1031. Maximum Sum of Two Non-Overlapping Subarrays.cpp
1031. Maximum Sum of Two Non-Overlapping Subarrays.cpp
1035. Uncrossed Lines.cpp
1035. Uncrossed Lines.cpp
1039. Minimum Score Triangulation of Polygon.cpp
1039. Minimum Score Triangulation of Polygon.cpp
1043. Partition Array for Maximum Sum.cpp
1043. Partition Array for Maximum Sum.cpp
1046. Last Stone Weight.cpp
1046. Last Stone Weight.cpp
1049. Last Stone Weight II.cpp
1049. Last Stone Weight II.cpp
1054. Distant Barcodes.cpp
1054. Distant Barcodes.cpp
1072. Flip Columns For Maximum Number of Equal Rows.cpp
1072. Flip Columns For Maximum Number of Equal Rows.cpp
1073. Adding Two Negabinary Numbers.cpp
1073. Adding Two Negabinary Numbers.cpp
1081. Smallest Subsequence of Distinct Characters.cpp
1081. Smallest Subsequence of Distinct Characters.cpp
1090. Largest Values From Labels.cpp
1090. Largest Values From Labels.cpp
1094. Car Pooling.cpp
1094. Car Pooling.cpp
1104. Path In Zigzag Labelled Binary Tree.cpp
1104. Path In Zigzag Labelled Binary Tree.cpp
1105. Filling Bookcase Shelves.cpp
1105. Filling Bookcase Shelves.cpp
1110. Delete Nodes And Return Forest.cpp
1110. Delete Nodes And Return Forest.cpp
1111. Maximum Nesting Depth of Two Valid Parentheses Strings.cpp
1111. Maximum Nesting Depth of Two Valid Parentheses Strings.cpp
112. Path Sum.cpp
112. Path Sum.cpp
1123. Lowest Common Ancestor of Deepest Leaves.cpp
1123. Lowest Common Ancestor of Deepest Leaves.cpp
1124. Longest Well-Performing Interval.cpp
1124. Longest Well-Performing Interval.cpp
1130. Minimum Cost Tree From Leaf Values.cpp
1130. Minimum Cost Tree From Leaf Values.cpp
1143. Longest Common Subsequence.cpp
1143. Longest Common Subsequence.cpp
1146. Snapshot Array.cpp
1146. Snapshot Array.cpp
1155. Number of Dice Rolls With Target Sum.cpp
1155. Number of Dice Rolls With Target Sum.cpp
1169. Invalid Transactions.cpp
1169. Invalid Transactions.cpp
1177. Can Make Palindrome from Substring.cpp
1177. Can Make Palindrome from Substring.cpp
118. Pascal's Triangle.cpp
118. Pascal's Triangle.cpp
1186. Maximum Subarray Sum with One Deletion.cpp
1186. Maximum Subarray Sum with One Deletion.cpp
119. Pascal's Triangle II.cpp
119. Pascal's Triangle II.cpp
1190. Reverse Substrings Between Each Pair of Parentheses.cpp
1190. Reverse Substrings Between Each Pair of Parentheses.cpp
1191. K-Concatenation Maximum Sum.cpp
1191. K-Concatenation Maximum Sum.cpp
1195. Fizz Buzz Multithreaded.cpp
1195. Fizz Buzz Multithreaded.cpp
120. Triangle.cpp
120. Triangle.cpp
1201. Ugly Number III.cpp
1201. Ugly Number III.cpp
121. Best Time to Buy and Sell Stock.cpp
121. Best Time to Buy and Sell Stock.cpp
1218. Longest Arithmetic Subsequence of Given Difference.cpp
1218. Longest Arithmetic Subsequence of Given Difference.cpp
122. Best Time to Buy and Sell Stock II.cpp
122. Best Time to Buy and Sell Stock II.cpp
1233. Remove Sub-Folders from the Filesystem.cpp
1233. Remove Sub-Folders from the Filesystem.cpp
1234. Replace the Substring for Balanced String.cpp
1234. Replace the Substring for Balanced String.cpp
1237. Find Positive Integer Solution for a Given Equation.cpp
1237. Find Positive Integer Solution for a Given Equation.cpp
1238. Circular Permutation in Binary Representation.cpp
1238. Circular Permutation in Binary Representation.cpp
1247. Minimum Swaps to Make Strings Equal.cpp
1247. Minimum Swaps to Make Strings Equal.cpp
1248. Count Number of Nice Subarrays.cpp
1248. Count Number of Nice Subarrays.cpp
1249. Minimum Remove to Make Valid Parentheses.cpp
1249. Minimum Remove to Make Valid Parentheses.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
1260. Shift 2D Grid.cpp
1260. Shift 2D Grid.cpp
1266. Minimum Time Visiting All Points.cpp
1266. Minimum Time Visiting All Points.cpp
1268. Search Suggestions System.cpp
1268. Search Suggestions System.cpp
127. Word Ladder.cpp
127. Word Ladder.cpp
1275. Find Winner on a Tic Tac Toe Game.cpp
1275. Find Winner on a Tic Tac Toe Game.cpp
1277. Count Square Submatrices with All Ones.cpp
1277. Count Square Submatrices with All Ones.cpp
1281. Subtract the Product and Sum of Digits of an Integer.cpp
1281. Subtract the Product and Sum of Digits of an Integer.cpp
1287. Element Appearing More Than 25% In Sorted Array.cpp
1287. Element Appearing More Than 25% In Sorted Array.cpp
1288. Remove Covered Intervals.cpp
1288. Remove Covered Intervals.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1295. Find Numbers with Even Number of Digits.cpp
1295. Find Numbers with Even Number of Digits.cpp
1296. Divide Array in Sets of K Consecutive Numbers.cpp
1296. Divide Array in Sets of K Consecutive Numbers.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
1300. Sum of Mutated Array Closest to Target.cpp
1300. Sum of Mutated Array Closest to Target.cpp
1304. Find N Unique Integers Sum up to Zero.cpp
1304. Find N Unique Integers Sum up to Zero.cpp
1309. Decrypt String from Alphabet to Integer Mapping.cpp
1309. Decrypt String from Alphabet to Integer Mapping.cpp
1310. XOR Queries of a Subarray.cpp
1310. XOR Queries of a Subarray.cpp
1311. Get Watched Videos by Your Friends.cpp
1311. Get Watched Videos by Your Friends.cpp
1313. Decompress Run-Length Encoded List.cpp
1313. Decompress Run-Length Encoded List.cpp
1314. Matrix Block Sum.cpp
1314. Matrix Block Sum.cpp
1317. Convert Integer to the Sum of Two No-Zero Integers.cpp
1317. Convert Integer to the Sum of Two No-Zero Integers.cpp
1318. Minimum Flips to Make a OR b Equal to c.cpp
1318. Minimum Flips to Make a OR b Equal to c.cpp
132 Pattern.cpp
132 Pattern.cpp
1323. Maximum 69 Number.cpp
1323. Maximum 69 Number.cpp
1325. Delete Leaves With a Given Value.cpp
1325. Delete Leaves With a Given Value.cpp
133. Clone Graph.cpp
133. Clone Graph.cpp
1331. Rank Transform of an Array.cpp
1331. Rank Transform of an Array.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
1338. Reduce Array Size to The Half.cpp
1338. Reduce Array Size to The Half.cpp
1339. Maximum Product of Splitted Binary Tree.cpp
1339. Maximum Product of Splitted Binary Tree.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
1346. Check If N and Its Double Exist.cpp
1346. Check If N and Its Double Exist.cpp
1348. Tweet Counts Per Frequency.cpp
1348. Tweet Counts Per Frequency.cpp
1351. Count Negative Numbers in a Sorted Matrix.cpp
1351. Count Negative Numbers in a Sorted Matrix.cpp
1356. Sort Integers by The Number of 1 Bits.cpp
1356. Sort Integers by The Number of 1 Bits.cpp
136. Single Number.cpp
136. Single Number.cpp
1360. Number of Days Between Two Dates.cpp
1360. Number of Days Between Two Dates.cpp
1365. How Many Numbers Are Smaller Than the Current Number.cpp
1365. How Many Numbers Are Smaller Than the Current Number.cpp
1370. Increasing Decreasing String.cpp
1370. Increasing Decreasing String.cpp
1372. Longest ZigZag Path in a Binary Tree.cpp
1372. Longest ZigZag Path in a Binary Tree.cpp
1374. Generate a String With Characters That Have Odd Counts Easy.cpp
1374. Generate a String With Characters That Have Odd Counts Easy.cpp
1375. Bulb Switcher III.cpp
1375. Bulb Switcher III.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
About
LeetCode Problems
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.
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル