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 }}
yamanrajsingh
/
DSA-Leetcode-Problem-Solution
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
Latest commit
History
131 Commits
131 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1. Two Sum.cpp
1. Two Sum.cpp
1046. Last Stone Weight.cpp
1046. Last Stone Weight.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
112. Path Sum.cpp
112. Path Sum.cpp
118. Pascal's Triangle.cpp
118. Pascal's Triangle.cpp
1203. Sort Items by Groups Respecting Dependencies.cpp
1203. Sort Items by Groups Respecting Dependencies.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
135. Candy.cpp
135. Candy.cpp
1359. Count All Valid Pickup and Delivery Options.cpp
1359. Count All Valid Pickup and Delivery Options.cpp
136. Single Number.cpp
136. Single Number.cpp
137. Single Number II.cpp
137. Single Number II.cpp
139. Word Break.cpp
139. Word Break.cpp
1464. Maximum Product of Two Elements in an Array.cpp
1464. Maximum Product of Two Elements in an Array.cpp
1480. Running Sum of 1d Array.cpp
1480. Running Sum of 1d Array.cpp
1486. XOR Operation in an Array.cpp
1486. XOR Operation in an Array.cpp
1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp
1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp
1512. Number of Good Pairs.cpp
1512. Number of Good Pairs.cpp
168. Excel Sheet Column Title.cpp
168. Excel Sheet Column Title.cpp
169. Majority Element.cpp
169. Majority Element.cpp
1742. Maximum Number of Balls in a Box.cpp
1742. Maximum Number of Balls in a Box.cpp
1752. Check if Array Is Sorted and Rotated.cpp
1752. Check if Array Is Sorted and Rotated.cpp
18. 4Sum.cpp
18. 4Sum.cpp
1816. Truncate Sentence.cpp
1816. Truncate Sentence.cpp
1886. Determine Whether Matrix Can Be Obtained By Rotation.cpp
1886. Determine Whether Matrix Can Be Obtained By Rotation.cpp
19. Remove Nth Node From End of List.cpp
19. Remove Nth Node From End of List.cpp
190. Reverse Bits.cpp
190. Reverse Bits.cpp
191. Number of 1 Bits.cpp
191. Number of 1 Bits.cpp
1929. Concatenation of Array.cpp
1929. Concatenation of Array.cpp
1952. Three Divisors.cpp
1952. Three Divisors.cpp
1991. Find the Middle Index in Array.cpp
1991. Find the Middle Index in Array.cpp
2. Add Two Numbers.cpp
2. Add Two Numbers.cpp
20. Valid Parentheses.cpp
20. Valid Parentheses.cpp
2099. Find Subsequence of Length K With the Largest Sum.cpp
2099. Find Subsequence of Length K With the Largest Sum.cpp
21. Merge Two Sorted Lists.cpp
21. Merge Two Sorted Lists.cpp
2190. Most Frequent Number Following Key In an Array.cpp
2190. Most Frequent Number Following Key In an Array.cpp
2206. Divide Array Into Equal Pairs.cpp
2206. Divide Array Into Equal Pairs.cpp
2221. Find Triangular Sum of an Array.cpp
2221. Find Triangular Sum of an Array.cpp
2235. Add Two Integers.cpp
2235. Add Two Integers.cpp
225. Implement Stack using Queues.cpp
225. Implement Stack using Queues.cpp
226. Invert Binary Tree.cpp
226. Invert Binary Tree.cpp
229. Majority Element II.cpp
229. Majority Element II.cpp
230. Kth Smallest Element in a BST.cpp
230. Kth Smallest Element in a BST.cpp
2352. Equal Row and Column Pairs.cpp
2352. Equal Row and Column Pairs.cpp
2366. Minimum Replacements to Sort the Array.cpp
2366. Minimum Replacements to Sort the Array.cpp
2369. Check if There is a Valid Partition For The Array.cpp
2369. Check if There is a Valid Partition For The Array.cpp
239. Sliding Window Maximum.cpp
239. Sliding Window Maximum.cpp
24. Swap Nodes in Pairs.cpp
24. Swap Nodes in Pairs.cpp
2404. Most Frequent Even Element.cpp
2404. Most Frequent Even Element.cpp
2413. Smallest Even Multiple.cpp
2413. Smallest Even Multiple.cpp
2455. Average Value of Even Numbers That Are Divisible by Three.cpp
2455. Average Value of Even Numbers That Are Divisible by Three.cpp
25. Reverse Nodes in k-Group.cpp
25. Reverse Nodes in k-Group.cpp
2520. Count the Digits That Divide a Number.cpp
2520. Count the Digits That Divide a Number.cpp
2535. Difference Between Element Sum and Digit Sum of an Array.cpp
2535. Difference Between Element Sum and Digit Sum of an Array.cpp
2544. Alternating Digit Sum.cpp
2544. Alternating Digit Sum.cpp
2549. Count Distinct Numbers on Board.cpp
2549. Count Distinct Numbers on Board.cpp
2551. Put Marbles in Bags.cpp
2551. Put Marbles in Bags.cpp
2558. Take Gifts From the Richest Pile.cpp
2558. Take Gifts From the Richest Pile.cpp
258. Add Digits.cpp
258. Add Digits.cpp
26. Remove Duplicates from Sorted Array.cpp
26. Remove Duplicates from Sorted Array.cpp
260. Single Number III.cpp
260. Single Number III.cpp
2616. Minimize the Maximum Difference of Pairs.cpp
2616. Minimize the Maximum Difference of Pairs.cpp
263. Ugly Number.cpp
263. Ugly Number.cpp
2643. Row With Maximum Ones.cpp
2643. Row With Maximum Ones.cpp
2652. Sum Multiples.cpp
2652. Sum Multiples.cpp
2679. Sum in a Matrix.cpp
2679. Sum in a Matrix.cpp
27. Remove Element.cpp
27. Remove Element.cpp
2706. Buy Two Chocolates.cpp
2706. Buy Two Chocolates.cpp
2707. Extra Characters in a String.cpp
2707. Extra Characters in a String.cpp
2716. Minimize String Length.cpp
2716. Minimize String Length.cpp
2729. Check if The Number is Fascinating.cpp
2729. Check if The Number is Fascinating.cpp
2733. Neither Minimum nor Maximum.cpp
2733. Neither Minimum nor Maximum.cpp
2744. Find Maximum Number of String Pairs.cpp
2744. Find Maximum Number of String Pairs.cpp
2769. Find the Maximum Achievable Number.cpp
2769. Find the Maximum Achievable Number.cpp
2778. Sum of Squares of Special Elements.cpp
2778. Sum of Squares of Special Elements.cpp
278. First Bad Version.cpp
278. First Bad Version.cpp
2784. Check if Array is Good.cpp
2784. Check if Array is Good.cpp
2798. Number of Employees Who Met the Target.cpp
2798. Number of Employees Who Met the Target.cpp
28. Find the Index of the First Occurrence in a String.cpp
28. Find the Index of the First Occurrence in a String.cpp
2833. Furthest Point From Origin.cpp
2833. Furthest Point From Origin.cpp
292. Nim Game.cpp
292. Nim Game.cpp
3. Longest Substring Without Repeating Characters.cpp
3. Longest Substring Without Repeating Characters.cpp
303. Range Sum Query - Immutable.cpp
303. Range Sum Query - Immutable.cpp
33. Search in Rotated Sorted Array.cpp
33. Search in Rotated Sorted Array.cpp
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
344. Reverse String.cpp
344. Reverse String.cpp
345. Reverse Vowels of a String.cpp
345. Reverse Vowels of a String.cpp
347. Top K Frequent Elements.cpp
347. Top K Frequent Elements.cpp
35. Search Insert Position.cpp
35. Search Insert Position.cpp
367. Valid Perfect Square.cpp
367. Valid Perfect Square.cpp
374. Guess Number Higher or Lower.cpp
374. Guess Number Higher or Lower.cpp
377. Combination Sum IV.cpp
377. Combination Sum IV.cpp
392. Is Subsequence.cpp
392. Is Subsequence.cpp
4. Median of Two Sorted Arrays.cpp
4. Median of Two Sorted Arrays.cpp
403. Frog Jump.cpp
403. Frog Jump.cpp
414. Third Maximum Number.cpp
414. Third Maximum Number.cpp
448. Find All Numbers Disappeared in an Array.cpp
448. Find All Numbers Disappeared in an Array.cpp
450. Delete Node in a BST.cpp
450. Delete Node in a BST.cpp
View all files
About
No description, website, or topics provided.
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.