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 }}
RitikJainRJ
/
GFG-Practice
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
3
Code
Issues
0
Pull requests
2
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
77 Commits
77 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.gitattributes
.gitattributes
.gitignore
.gitignore
Activity Selection .cpp
Activity Selection .cpp
Aggresive cow.cpp
Aggresive cow.cpp
Alien dictionary.cpp
Alien dictionary.cpp
Allocate minimum number of pages.cpp
Allocate minimum number of pages.cpp
Array Pair Sum Divisibility Problem.cpp
Array Pair Sum Divisibility Problem.cpp
Array to BST.cpp
Array to BST.cpp
Chocolate Distribution Problem.cpp
Chocolate Distribution Problem.cpp
Circular tour.cpp
Circular tour.cpp
Closest Number.cpp
Closest Number.cpp
Combination Sum - Part 2 .cpp
Combination Sum - Part 2 .cpp
Combination Sum.cpp
Combination Sum.cpp
Combine the strings.cpp
Combine the strings.cpp
Compare two Large Numbers .cpp
Compare two Large Numbers .cpp
Count Occurences of Anagrams.cpp
Count Occurences of Anagrams.cpp
Count all possible paths from top left to bottom right of a mXn matrix.cpp
Count all possible paths from top left to bottom right of a mXn matrix.cpp
Count distinct elements in every window.cpp
Count distinct elements in every window.cpp
Count of N-digit Palindrome numbers.cpp
Count of N-digit Palindrome numbers.cpp
Count total set bits.cpp
Count total set bits.cpp
Count ways to reach the n'th stair.cpp
Count ways to reach the n'th stair.cpp
Decode the string.cpp
Decode the string.cpp
Delete N nodes after M nodes of a linked list.cpp
Delete N nodes after M nodes of a linked list.cpp
Difference of two large numbers.cpp
Difference of two large numbers.cpp
Distinct palindromic substrings.cpp
Distinct palindromic substrings.cpp
Divide large number.cpp
Divide large number.cpp
Element with left side smaller and right side greater.cpp
Element with left side smaller and right side greater.cpp
Excel Sheet Part - 1.cpp
Excel Sheet Part - 1.cpp
Excel Sheet Part - 2.cpp
Excel Sheet Part - 2.cpp
Factorials of large numbers.cpp
Factorials of large numbers.cpp
Fibonacci jumps.cpp
Fibonacci jumps.cpp
Find all four sum numbers.cpp
Find all four sum numbers.cpp
Find k closest elements to a given value.cpp
Find k closest elements to a given value.cpp
Find the highest occurring digit in prime numbers in a range.cpp
Find the highest occurring digit in prime numbers in a range.cpp
Find the number of sub-arrays having even sum.cpp
Find the number of sub-arrays having even sum.cpp
First non-repeating character in a stream.cpp
First non-repeating character in a stream.cpp
Friends Pairing Problem.cpp
Friends Pairing Problem.cpp
GCD of array.cpp
GCD of array.cpp
Generate all palindromic numbers less than n.cpp
Generate all palindromic numbers less than n.cpp
Get minimum element from stack.c
Get minimum element from stack.c
Group Anagrams Together.cpp
Group Anagrams Together.cpp
Index Of an Extra Element.cpp
Index Of an Extra Element.cpp
Infix to postfix.cpp
Infix to postfix.cpp
Insufficient Nodes in Root to Leaf Paths.cpp
Insufficient Nodes in Root to Leaf Paths.cpp
Iterative Postorder.cpp
Iterative Postorder.cpp
K largest element minheap.cpp
K largest element minheap.cpp
KMP algorithm.cpp
KMP algorithm.cpp
Kruskal’s Minimum Spanning Tree Algorithm.cpp
Kruskal’s Minimum Spanning Tree Algorithm.cpp
Kth largest element in a stream.cpp
Kth largest element in a stream.cpp
LCM And GCD.cpp
LCM And GCD.cpp
Largest Number formed from an Array .cpp
Largest Number formed from an Array .cpp
Largest rectangular sub-matrix whose sum is 0.cpp
Largest rectangular sub-matrix whose sum is 0.cpp
Largest subarray of 0's and 1's.cpp
Largest subarray of 0's and 1's.cpp
Longest K unique characters substring II.cpp
Longest K unique characters substring II.cpp
Longest K unique characters substring.cpp
Longest K unique characters substring.cpp
Longest Prefix Suffix.cpp
Longest Prefix Suffix.cpp
Longest Sub-Array with Sum K.cpp
Longest Sub-Array with Sum K.cpp
Longest decreasing subsequence.cpp
Longest decreasing subsequence.cpp
Magician and Chocolates.cpp
Magician and Chocolates.cpp
Max Sum Subarray of size K.cpp
Max Sum Subarray of size K.cpp
Maximize Number of 1's flipping 0's.cpp
Maximize Number of 1's flipping 0's.cpp
Maximum Index.cpp
Maximum Index.cpp
Maximum Product Subarray.cpp
Maximum Product Subarray.cpp
Maximum Sub Array.cpp
Maximum Sub Array.cpp
Maximum sum Rectangle.cpp
Maximum sum Rectangle.cpp
Merge Without Extra Space.cpp
Merge Without Extra Space.cpp
Merge k Sorted Arrays.cpp
Merge k Sorted Arrays.cpp
Min distance between two given nodes of a Binary Tree .cpp
Min distance between two given nodes of a Binary Tree .cpp
Minimum Cost Path.cpp
Minimum Cost Path.cpp
Minimum Cost of ropes.cpp
Minimum Cost of ropes.cpp
Minimum number of Square Free Divisors.cpp
Minimum number of Square Free Divisors.cpp
Minimum platform.cpp
Minimum platform.cpp
Minimum sum partition.cpp
Minimum sum partition.cpp
Multiply two linked list.cpp
Multiply two linked list.cpp
Multiply two strings.cpp
Multiply two strings.cpp
N max pair combinations.cpp
N max pair combinations.cpp
N meetings in one room.cpp
N meetings in one room.cpp
N-aryTree DP.cpp
N-aryTree DP.cpp
N-aryTree.cpp
N-aryTree.cpp
Next larger element.cpp
Next larger element.cpp
Nodes at given distance in binary tree.cpp
Nodes at given distance in binary tree.cpp
Number following a pattern.cpp
Number following a pattern.cpp
Painter Parition.cpp
Painter Parition.cpp
Perfect Binary Tree Specific Level Order Traversal.cpp
Perfect Binary Tree Specific Level Order Traversal.cpp
Permutations of a given string.cpp
Permutations of a given string.cpp
Power of 2.cpp
Power of 2.cpp
Prim’s Minimum Spanning Tree.cpp
Prim’s Minimum Spanning Tree.cpp
Priority queue implementation.cpp
Priority queue implementation.cpp
Program to print all palindromes in a given range.cpp
Program to print all palindromes in a given range.cpp
QuickSort on Doubly Linked List.cpp
QuickSort on Doubly Linked List.cpp
QuickSort on Linked List.cpp
QuickSort on Linked List.cpp
README.md
README.md
Range Minimum Query.cpp
Range Minimum Query.cpp
Rearrange a string so that all same characters become d distance away.cpp
Rearrange a string so that all same characters become d distance away.cpp
Recursively remove all adjacent duplicates.cpp
Recursively remove all adjacent duplicates.cpp
Reorder an array according to given indexes.cpp
Reorder an array according to given indexes.cpp
Reverse a Linked List in groups of given size.cpp
Reverse a Linked List in groups of given size.cpp
Rotten Oranges.cpp
Rotten Oranges.cpp
Search in a sorted matrix.cpp
Search in a sorted matrix.cpp
Shuffle integers.cpp
Shuffle integers.cpp
View all files
Repository files navigation
README
More
items
GFG-Practice
About
GeeksforGeeks coding question solutions practice.
Topics
geeksforgeeks
geeksforgeeks-cpp
geeksforgeeks-solutions
Resources
Readme
Activity
Stars
3
stars
Watchers
1
watching
Forks
1
fork
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.