Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
iGyandeep
LeetCode-Solution
Repository navigation
Code
Issues
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
LeetCode-Solution
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
3
(
3
)
You must be signed in to star a repository
About
www.leetcode.com
Topics
algorithms
cpp
data-structures
data-structures-and-algorithms
dsa
leetcode
leetcode-solutions
Activity
Stars
3
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
161 Commits
161 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1005. Maximize Sum Of Array After K Negations.cpp
1005. Maximize Sum Of Array After K Negations.cpp
1009. Complement of Base 10 Integer.cpp
1009. Complement of Base 10 Integer.cpp
104. Maximum Depth of Binary Tree.cpp
104. Maximum Depth of Binary Tree.cpp
111. Minimum Depth of Binary Tree.cpp
111. Minimum Depth of Binary Tree.cpp
1125. Smallest Sufficient Team.cpp
1125. Smallest Sufficient Team.cpp
1160. Find Words That Can Be Formed by Characters.cpp
1160. Find Words That Can Be Formed by Characters.cpp
118. Pascal's Triangle.cpp
118. Pascal's Triangle.cpp
1189. Maximum Number of Balloons.cpp
1189. Maximum Number of Balloons.cpp
1207. Unique Number of Occurrences.cpp
1207. Unique Number of Occurrences.cpp
1218. Longest Arithmetic Subsequence of Given Difference.cpp
1218. Longest Arithmetic Subsequence of Given Difference.cpp
1235. Maximum Profit in Job Scheduling.cpp
1235. Maximum Profit in Job Scheduling.cpp
1266. Minimum Time Visiting All Points.cpp
1266. Minimum Time Visiting All Points.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
1291. Sequential Digits.cpp
1291. Sequential Digits.cpp
1356. Sort Integers by The Number of 1 Bits.cpp
1356. Sort Integers by The Number of 1 Bits.cpp
137. Single Number II.cpp
137. Single Number II.cpp
138. Copy List with Random Pointer.cpp
138. Copy List with Random Pointer.cpp
139. Word Break.cpp
139. Word Break.cpp
14. Longest Common Prefix.cpp
14. Longest Common Prefix.cpp
141. Linked List Cycle.cpp
141. Linked List Cycle.cpp
1436. Destination City.cpp
1436. Destination City.cpp
146. LRU Cache.cpp
146. LRU Cache.cpp
1464. Maximum Product of Two Elements in an Array.cpp
1464. Maximum Product of Two Elements in an Array.cpp
1493. Longest Subarray of 1's After Deleting One Element.cpp
1493. Longest Subarray of 1's After Deleting One Element.cpp
1502. Can Make Arithmetic Progression From Sequence
1502. Can Make Arithmetic Progression From Sequence
1512. Number of Good Pairs.cpp
1512. Number of Good Pairs.cpp
153. Find Minimum in Rotated Sorted Array.cpp
153. Find Minimum in Rotated Sorted Array.cpp
1582. Special Positions in a Binary Matrix.cpp
1582. Special Positions in a Binary Matrix.cpp
1601. Maximum Number of Achievable Transfer Requests.cpp
1601. Maximum Number of Achievable Transfer Requests.cpp
168. Excel Sheet Column Title.cpp
168. Excel Sheet Column Title.cpp
1684. Count the Number of Consistent Strings.cpp
1684. Count the Number of Consistent Strings.cpp
169. Majority Element.cpp
169. Majority Element.cpp
17. Letter Combinations of a Phone Number.cpp
17. Letter Combinations of a Phone Number.cpp
1716. Calculate Money in Leetcode Bank.cpp
1716. Calculate Money in Leetcode Bank.cpp
1732. Find the Highest Altitude.cpp
1732. Find the Highest Altitude.cpp
1751. Maximum Number of Events That Can Be Attended II.cpp
1751. Maximum Number of Events That Can Be Attended II.cpp
1814. Count Nice Pairs in an Array.cpp
1814. Count Nice Pairs in an Array.cpp
1837. Sum of Digits in Base K.cpp
1837. Sum of Digits in Base K.cpp
1863. Sum of All Subset XOR Totals.cpp
1863. Sum of All Subset XOR Totals.cpp
1870. Minimum Speed to Arrive on Time.cpp
1870. Minimum Speed to Arrive on Time.cpp
19. Remove Nth Node From End of List.cpp
19. Remove Nth Node From End of List.cpp
1903. Largest Odd Number in String.cpp
1903. Largest Odd Number in String.cpp
191. Number of 1 Bits.cpp
191. Number of 1 Bits.cpp
1913. Maximum Product Difference Between Two Pairs.cpp
1913. Maximum Product Difference Between Two Pairs.cpp
2022. Convert 1D Array Into 2D Array.cpp
2022. Convert 1D Array Into 2D Array.cpp
2024. Maximize the Confusion of an Exam.cpp
2024. Maximize the Confusion of an Exam.cpp
2038. Remove Colored Pieces if Both Neighbors are the Same Color.cpp
2038. Remove Colored Pieces if Both Neighbors are the Same Color.cpp
207. Course Schedule.cpp
207. Course Schedule.cpp
209. Minimum Size Subarray Sum.cpp
209. Minimum Size Subarray Sum.cpp
2099. Find Subsequence of Length K With the Largest Sum.cpp
2099. Find Subsequence of Length K With the Largest Sum.cpp
2125. Number of Laser Beams in a Bank.cpp
2125. Number of Laser Beams in a Bank.cpp
2141. Maximum Running Time of N Computers.cpp
2141. Maximum Running Time of N Computers.cpp
2160. Minimum Sum of Four Digit Number After Splitting Digits.cpp
2160. Minimum Sum of Four Digit Number After Splitting Digits.cpp
2220. Minimum Bit Flips to Convert Number
2220. Minimum Bit Flips to Convert Number
2224. Minimum Number of Operations to Convert Time.cpp
2224. Minimum Number of Operations to Convert Time.cpp
2264. Largest 3-Same-Digit Number in String.cpp
2264. Largest 3-Same-Digit Number in String.cpp
2272. Substring With Largest Variance.cpp
2272. Substring With Largest Variance.cpp
229. Majority Element II.cpp
229. Majority Element II.cpp
2305. Fair Distribution of Cookies.cpp
2305. Fair Distribution of Cookies.cpp
2315. Count Asterisks.cpp
2315. Count Asterisks.cpp
2353. Design a Food Rating System.cpp
2353. Design a Food Rating System.cpp
2385. Amount of Time for Binary Tree to Be Infected.cpp
2385. Amount of Time for Binary Tree to Be Infected.cpp
2404. Most Frequent Even Element.cpp
2404. Most Frequent Even Element.cpp
242. Valid Anagram.cpp
242. Valid Anagram.cpp
2433. Find The Original Array of Prefix Xor.cpp
2433. Find The Original Array of Prefix Xor.cpp
2482. Difference Between Ones and Zeros in Row and Column.cpp
2482. Difference Between Ones and Zeros in Row and Column.cpp
2483. Minimum Penalty for a Shop.cpp
2483. Minimum Penalty for a Shop.cpp
2486. Append Characters to String to Make Subsequence.cpp
2486. Append Characters to String to Make Subsequence.cpp
2544. Alternating Digit Sum.cpp
2544. Alternating Digit Sum.cpp
2551. Put Marbles in Bags.cpp
2551. Put Marbles in Bags.cpp
2553. Separate the Digits in an Array.cpp
2553. Separate the Digits in an Array.cpp
2595. Number of Even and Odd Bits.cpp
2595. Number of Even and Odd Bits.cpp
2610. Convert an Array Into a 2D Array With Conditions.cpp
2610. Convert an Array Into a 2D Array With Conditions.cpp
2616. Minimize the Maximum Difference of Pairs.cpp
2616. Minimize the Maximum Difference of Pairs.cpp
2651. Calculate Delayed Arrival Time.cpp
2651. Calculate Delayed Arrival Time.cpp
2656. Maximum Sum With Exactly K Elements.cpp
2656. Maximum Sum With Exactly K Elements.cpp
2707. Extra Characters in a String.cpp
2707. Extra Characters in a String.cpp
2733. Neither Minimum nor Maximum.cpp
2733. Neither Minimum nor Maximum.cpp
2778. Sum of Squares of Special Elements.cpp
2778. Sum of Squares of Special Elements.cpp
2798. Number of Employees Who Met the Target.cpp
2798. Number of Employees Who Met the Target.cpp
2810. Faulty Keyboard.cpp
2810. Faulty Keyboard.cpp
2824. Count Pairs Whose Sum is Less than Target.cpp
2824. Count Pairs Whose Sum is Less than Target.cpp
2828. Check if a String Is an Acronym of Words.cpp
2828. Check if a String Is an Acronym of Words.cpp
2859. Sum of Values at Indices With K Set Bits.cpp
2859. Sum of Values at Indices With K Set Bits.cpp
2864. Maximum Odd Binary Number.cpp
2864. Maximum Odd Binary Number.cpp
2870. Minimum Number of Operations to Make Array Empty.cpp
2870. Minimum Number of Operations to Make Array Empty.cpp
2894. Divisible and Non-divisible Sums Difference.cpp
2894. Divisible and Non-divisible Sums Difference.cpp
2903. Find Indices With Index and Value Difference I.cpp
2903. Find Indices With Index and Value Difference I.cpp
2966. Divide Array Into Arrays With Max Difference.cpp
2966. Divide Array Into Arrays With Max Difference.cpp
300. Longest Increasing Subsequence.cpp
300. Longest Increasing Subsequence.cpp
316. Remove Duplicate Letters.cpp
316. Remove Duplicate Letters.cpp
322. Coin Change.cpp
322. Coin Change.cpp
33. Search in Rotated Sorted Array.cpp
33. Search in Rotated Sorted Array.cpp
338. Counting Bits
338. Counting Bits
338. Counting Bits.cpp
338. Counting Bits.cpp
34. Find First and Last Position of Element in Sorted Array.cpp
34. Find First and Last Position of Element in Sorted Array.cpp
342. Power of Four.cpp
342. Power of Four.cpp
343. Integer Break.cpp
343. Integer Break.cpp
377. Combination Sum IV.cpp
377. Combination Sum IV.cpp
View all files
About
www.leetcode.com
Topics
algorithms
cpp
data-structures
data-structures-and-algorithms
dsa
leetcode
leetcode-solutions
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.