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 }}
garimasinghgryffindor
/
DSA
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
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
641 Commits
641 Commits
0_1 BFS
0_1 BFS
Array
Array
BFS IN MATRIX
BFS IN MATRIX
BFS in Array
BFS in Array
BFS
BFS
BST
BST
Backtracking
Backtracking
Binary Exponentiation
Binary Exponentiation
Binary Lifting
Binary Lifting
Binary Search
Binary Search
Binary Tree
Binary Tree
Bit Manipulation
Bit Manipulation
Bitmask
Bitmask
Biweekly
Biweekly
CODING NINJAS STUDIO CONTEST
CODING NINJAS STUDIO CONTEST
Combination
Combination
Combinatorics
Combinatorics
DFS in Matrix
DFS in Matrix
DFS
DFS
DP
DP
Design
Design
Dutch National Flag Algorithm
Dutch National Flag Algorithm
GFG-Jobathon
GFG-Jobathon
GFG
GFG
Game Theory
Game Theory
Graph
Graph
Greedy
Greedy
Hash
Hash
LEETCODE BIWEEKLY
LEETCODE BIWEEKLY
LEETCODE WEEKLY
LEETCODE WEEKLY
Linked List
Linked List
Maps
Maps
Math
Math
Matrix
Matrix
Modified Merge Sort
Modified Merge Sort
Monotonic Queue
Monotonic Queue
Monotonic Stack
Monotonic Stack
Moore's Voting Algorithm
Moore's Voting Algorithm
Multi Source BFS
Multi Source BFS
Prefix Sum
Prefix Sum
Prep
Prep
Priority Queue
Priority Queue
Queue
Queue
Quick Select
Quick Select
Recursion
Recursion
SPOJ
SPOJ
Simulation
Simulation
Sliding Window
Sliding Window
Sorting
Sorting
Stack
Stack
String Matching
String Matching
String
String
Subset Sum Problem
Subset Sum Problem
Topological Sort
Topological Sort
Trie
Trie
Two Pointers
Two Pointers
Union Find
Union Find
Weekly
Weekly
Wildcard String Matching
Wildcard String Matching
XOR
XOR
1232. Check If It Is a Straight Line.cpp
1232. Check If It Is a Straight Line.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
3034. Number of Subarrays That Match a Pattern I.cpp
3034. Number of Subarrays That Match a Pattern I.cpp
3Sum.cpp
3Sum.cpp
464. Can I Win.cpp
464. Can I Win.cpp
58. Length of Last Word.cpp
58. Length of Last Word.cpp
Add to Array-Form of Integer.cpp
Add to Array-Form of Integer.cpp
As Far from Land as Possible.cpp
As Far from Land as Possible.cpp
Count Odd Numbers in an Interval Range.cpp
Count Odd Numbers in an Interval Range.cpp
Day of the Year.cpp
Day of the Year.cpp
Design Twitter.cpp
Design Twitter.cpp
Distant Barcodes.cpp
Distant Barcodes.cpp
Fair Candy Swap.cpp
Fair Candy Swap.cpp
Find K Closest Elements.cpp
Find K Closest Elements.cpp
Find Pivot Index.cpp
Find Pivot Index.cpp
First Bad Version.cpp
First Bad Version.cpp
First Unique Character in a String.cpp
First Unique Character in a String.cpp
Fruit Into Baskets.cpp
Fruit Into Baskets.cpp
Greatest Common Divisor of Strings.cpp
Greatest Common Divisor of Strings.cpp
H-Index II.cpp
H-Index II.cpp
Increasing Decreasing String.cpp
Increasing Decreasing String.cpp
Integer to English Words.cpp
Integer to English Words.cpp
Jump Game II.cpp
Jump Game II.cpp
Jump Game.cpp
Jump Game.cpp
K-diff Pairs in an Array.cpp
K-diff Pairs in an Array.cpp
K-th Smallest Prime Fraction.cpp
K-th Smallest Prime Fraction.cpp
Largest Number After Digit Swaps by Parity.cpp
Largest Number After Digit Swaps by Parity.cpp
Maximum Count of Positive Integer and Negative Integer.cpp
Maximum Count of Positive Integer and Negative Integer.cpp
Maximum Subarray.cpp
Maximum Subarray.cpp
Merge Intervals.cpp
Merge Intervals.cpp
Merge Two Binary Trees.cpp
Merge Two Binary Trees.cpp
Middle of the Linked List.cpp
Middle of the Linked List.cpp
Minimum Fuel Cost to Report to the Capital.cpp
Minimum Fuel Cost to Report to the Capital.cpp
Minimum Increment to Make Array Unique.cpp
Minimum Increment to Make Array Unique.cpp
Move Zeroes.cpp
Move Zeroes.cpp
Next Permutation.cpp
Next Permutation.cpp
Permutation in String.cpp
Permutation in String.cpp
Power of Two.cpp
Power of Two.cpp
Reordered Power of 2.cpp
Reordered Power of 2.cpp
View all files
About
LeetCode DSA questions
Topics
arrays
backtracking
binary-search
binary-search-tree
binary-tree
bitmask
brute-force
cpp
dp
dsa
graph
greedy
hash
heap
math
recursion
searching
sorting
stl
strings
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.