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 }}
Mayank-mic
/
All-codes
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
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
211 Commits
211 Commits
Arrays
Arrays
Coding Ninjas
Coding Ninjas
Contests
Contests
DP
DP
DSU
DSU
GFG POTD
GFG POTD
Graphs
Graphs
Greedy
Greedy
Imp
Imp
Linked List
Linked List
Maps
Maps
OOPS
OOPS
Recursion
Recursion
Stacks
Stacks
Strings
Strings
Trees
Trees
***GFG(E)- Find duplicates in an array.cpp
***GFG(E)- Find duplicates in an array.cpp
**LC-(M)-Shortest Path with Alternating Colors.cpp
**LC-(M)-Shortest Path with Alternating Colors.cpp
Calculate Delayed Arrival Time.cpp
Calculate Delayed Arrival Time.cpp
Concatenation of Array.cpp
Concatenation of Array.cpp
Contains Duplicate - 2.cpp
Contains Duplicate - 2.cpp
Count of Matches in Tournament.cpp
Count of Matches in Tournament.cpp
Determine the Minimum Sum of a k-avoiding Array.cpp
Determine the Minimum Sum of a k-avoiding Array.cpp
Find the Pivot Integer.cpp
Find the Pivot Integer.cpp
GFG (B) - Check if strings are rotations of each other or not.cpp
GFG (B) - Check if strings are rotations of each other or not.cpp
GFG (B) - Count Squares.cpp
GFG (B) - Count Squares.cpp
GFG (B) - Swap and Maximize.cpp
GFG (B) - Swap and Maximize.cpp
GFG (E) - Unique Number of Occurrences.cpp
GFG (E) - Unique Number of Occurrences.cpp
GFG - Find shortest safe route in a matrix.cpp
GFG - Find shortest safe route in a matrix.cpp
GFG - Generate IP Address.cpp
GFG - Generate IP Address.cpp
GFG-(B) Remove Consecutive Characters.cpp
GFG-(B) Remove Consecutive Characters.cpp
GFG-(B)- Power of 2.cpp
GFG-(B)- Power of 2.cpp
GFG-(B)-Bit difference.cpp
GFG-(B)-Bit difference.cpp
GFG-(B)-Evaluate the expression.cpp
GFG-(B)-Evaluate the expression.cpp
GFG-(B)-Minimum element in BST.cpp
GFG-(B)-Minimum element in BST.cpp
GFG-(E)- Find the Kth Permutation of first N natural numbers.cpp
GFG-(E)- Find the Kth Permutation of first N natural numbers.cpp
GFG-(E)- Sort 0s, 1s and 2s.cpp
GFG-(E)- Sort 0s, 1s and 2s.cpp
GFG-(E)-Determine if Two Trees are Identical.cpp
GFG-(E)-Determine if Two Trees are Identical.cpp
GFG-(E)-FIrst Repeating Element.cpp
GFG-(E)-FIrst Repeating Element.cpp
GFG-(E)-Find first set bit.cpp
GFG-(E)-Find first set bit.cpp
GFG-(E)-Key Pair.cpp
GFG-(E)-Key Pair.cpp
GFG-(E)-Left View of Binary Tree.cpp
GFG-(E)-Left View of Binary Tree.cpp
GFG-(E)-Maximize sum after K negations.cpp
GFG-(E)-Maximize sum after K negations.cpp
GFG-(E)-Peak Element.cpp
GFG-(E)-Peak Element.cpp
GFG-(E)-Remove all duplicates from a given string.cpp
GFG-(E)-Remove all duplicates from a given string.cpp
GFG-(E)-Reverse words in a given string.cpp
GFG-(E)-Reverse words in a given string.cpp
GFG-(E)-Right View of Binary Tree.cpp
GFG-(E)-Right View of Binary Tree.cpp
GFG-(E)-Roman Number to Integer.cpp
GFG-(E)-Roman Number to Integer.cpp
GFG-(E)-Rotate array.cpp
GFG-(E)-Rotate array.cpp
GFG-(E)-Search in a matrix.cpp
GFG-(E)-Search in a matrix.cpp
GFG-(E)-Second Largest Element in an Array.cpp
GFG-(E)-Second Largest Element in an Array.cpp
GFG-(E)-Stacks using two queues.cpp
GFG-(E)-Stacks using two queues.cpp
GFG-(H) Merge without extra space.cpp
GFG-(H) Merge without extra space.cpp
GFG-(M)-First non-repeating character in a stream.cpp
GFG-(M)-First non-repeating character in a stream.cpp
Group Anagrams.cpp
Group Anagrams.cpp
Intersection of Two Arrays II.cpp
Intersection of Two Arrays II.cpp
LC - (E) - Minimum Index Sum of Two Lists.cpp
LC - (E) - Minimum Index Sum of Two Lists.cpp
LC - Find Eventual Safe Nodes.cpp
LC - Find Eventual Safe Nodes.cpp
LC - Keys and Rooms.cpp
LC - Keys and Rooms.cpp
LC -(M)- Course Schedule.cpp
LC -(M)- Course Schedule.cpp
LC -(M)- Time Needed to Inform All Employees.cpp
LC -(M)- Time Needed to Inform All Employees.cpp
LC- Method 2 Find Eventual Safe Nodes.cpp
LC- Method 2 Find Eventual Safe Nodes.cpp
LC- Number of Provinces.cpp
LC- Number of Provinces.cpp
LC-(E)- Implement Stack using Queues.cpp
LC-(E)- Implement Stack using Queues.cpp
LC-(E)- Reverse a String.cpp
LC-(E)- Reverse a String.cpp
LC-(E)-Happy Number.cpp
LC-(E)-Happy Number.cpp
LC-(E)-Implement Queue using Stack.cpp
LC-(E)-Implement Queue using Stack.cpp
LC-(E)-Isomorphic Strings.cpp
LC-(E)-Isomorphic Strings.cpp
LC-(E)-Palindrome Linked List.cpp
LC-(E)-Palindrome Linked List.cpp
LC-(E)-Power of 2.cpp
LC-(E)-Power of 2.cpp
LC-(E)-Valid Perfect Squares.cpp
LC-(E)-Valid Perfect Squares.cpp
LC-(M)- All Paths From Source to Target.cpp
LC-(M)- All Paths From Source to Target.cpp
LC-(M)- Reverse Integer.cpp
LC-(M)- Reverse Integer.cpp
LC-(M)-Reverse Linked List.cpp
LC-(M)-Reverse Linked List.cpp
Maximum Length of Pair Chain.cpp
Maximum Length of Pair Chain.cpp
Minimum Operations to Reduce X to Zero.cpp
Minimum Operations to Reduce X to Zero.cpp
Minimum Time Visiting All Points.cpp
Minimum Time Visiting All Points.cpp
Minimum moves to conver a String.cpp
Minimum moves to conver a String.cpp
Nth Fibonacci.cpp
Nth Fibonacci.cpp
README.md
README.md
Remove duplicate elements from a sorted array.cpp
Remove duplicate elements from a sorted array.cpp
The K Weakest Rows in a Matrix.cpp
The K Weakest Rows in a Matrix.cpp
Ugly Number.cpp
Ugly Number.cpp
Welcome.cpp
Welcome.cpp
irst Unique Character in a String.cpp
irst Unique Character in a String.cpp
sum of Left leaves.cpp
sum of Left leaves.cpp
View all files
Repository files navigation
README
More
items
All-codes
Find solutions to coding problems. 😅
About
Find solutions to every coding problem.
Topics
algorithms
codechef
codeforces-solutions
coding-challenge
coding-ninjas-solution
coding-problems
data-structures
datastructures-algorithms
datastructuresandalgorithm
gfg-solutions
hackerrank-solutions
leetcode-solutions
problem-solving
Resources
Readme
Activity
Stars
3
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.