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 }}
Nothing-avil
/
GFG_sol
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
4
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
878 Commits
878 Commits
0-1_Knapsack_Problem.cpp
0-1_Knapsack_Problem.cpp
2D_Difference_Array.cpp
2D_Difference_Array.cpp
2D_Submatrix_Sum_Queries.cpp
2D_Submatrix_Sum_Queries.cpp
AND_In_Range.cpp
AND_In_Range.cpp
ASCII_Range_Sum.cpp
ASCII_Range_Sum.cpp
AVL_Tree_Deletion.cpp
AVL_Tree_Deletion.cpp
AVL_Tree_Insertion.cpp
AVL_Tree_Insertion.cpp
Account_Merge.cpp
Account_Merge.cpp
Activity_Selection.cpp
Activity_Selection.cpp
Add_1_to_a_Linked_List_Number.cpp
Add_1_to_a_Linked_List_Number.cpp
Add_Binary_Strings.cpp
Add_Binary_Strings.cpp
Add_Number_Linked_Lists.cpp
Add_Number_Linked_Lists.cpp
Add_two_numbers_represented_by_linked_lists.cpp
Add_two_numbers_represented_by_linked_lists.cpp
Additive_sequence.cpp
Additive_sequence.cpp
Aggressive_Cows.cpp
Aggressive_Cows.cpp
Alien_Dictionary.cpp
Alien_Dictionary.cpp
All_Palindromic_Partitions.cpp
All_Palindromic_Partitions.cpp
All_Subsets_Xor_Sum.cpp
All_Subsets_Xor_Sum.cpp
All_Unique_Permutations_of_an_array.cpp
All_Unique_Permutations_of_an_array.cpp
Allocate_Minimum_Pages.cpp
Allocate_Minimum_Pages.cpp
Alternate_positive_and_negative_numbers.cpp
Alternate_positive_and_negative_numbers.cpp
Alternative_Sorting.cpp
Alternative_Sorting.cpp
Anagram.cpp
Anagram.cpp
Anagram_Palindrome.cpp
Anagram_Palindrome.cpp
Ancestors_in_Binary_Tree.cpp
Ancestors_in_Binary_Tree.cpp
Anti_Diagonal_Traversal_of_Matrix.cpp
Anti_Diagonal_Traversal_of_Matrix.cpp
Armstrong_Numbers.cpp
Armstrong_Numbers.cpp
Arrange_Consonants_and_Vowels.cpp
Arrange_Consonants_and_Vowels.cpp
Array_Duplicates.cpp
Array_Duplicates.cpp
Array_Pair_Sum_Divisibility_Problem.cpp
Array_Pair_Sum_Divisibility_Problem.cpp
Array_to_BST.cpp
Array_to_BST.cpp
Articulation_Point-II.cpp
Articulation_Point-II.cpp
Assign_Mice_Holes.cpp
Assign_Mice_Holes.cpp
BFS_of_graph.cpp
BFS_of_graph.cpp
BST_to_greater_sum_tree.cpp
BST_to_greater_sum_tree.cpp
BST_with_Dead_End.cpp
BST_with_Dead_End.cpp
Balancing_Consonants_and_Vowels_Ratio.cpp
Balancing_Consonants_and_Vowels_Ratio.cpp
Bellman-Ford.cpp
Bellman-Ford.cpp
Better_String.cpp
Better_String.cpp
Binary_Searchable_Count.cpp
Binary_Searchable_Count.cpp
Binary_Strings_with_Equal_Sum_of_Two_Halves.cpp
Binary_Strings_with_Equal_Sum_of_Two_Halves.cpp
Binary_Tree_to_BST.cpp
Binary_Tree_to_BST.cpp
Binary_Tree_to_CDLL.cpp
Binary_Tree_to_CDLL.cpp
Binary_Tree_to_DLL.cpp
Binary_Tree_to_DLL.cpp
Binary_representation_of_next_number.cpp
Binary_representation_of_next_number.cpp
Bitonic_Point.cpp
Bitonic_Point.cpp
Bleak_Numbers.cpp
Bleak_Numbers.cpp
Boolean_Matrix.cpp
Boolean_Matrix.cpp
Boolean_Parenthesization.cpp
Boolean_Parenthesization.cpp
Bottom_View_of_Binary_Tree.cpp
Bottom_View_of_Binary_Tree.cpp
Boundary_traversal_of_matrix.cpp
Boundary_traversal_of_matrix.cpp
Brackets_in_Matrix_Chain_Multiplication.cpp
Brackets_in_Matrix_Chain_Multiplication.cpp
Bridge_edge_in_a_graph.cpp
Bridge_edge_in_a_graph.cpp
Brothers_From_Different_Roots.cpp
Brothers_From_Different_Roots.cpp
Buildings_with_Sunlight.cpp
Buildings_with_Sunlight.cpp
Burning_Tree.cpp
Burning_Tree.cpp
Bus_Conductor.cpp
Bus_Conductor.cpp
Bus_Ticket_Change.cpp
Bus_Ticket_Change.cpp
Buy_Maximum_Stocks_if_i_stocks_can_be_bought_on_i-th_day.cpp
Buy_Maximum_Stocks_if_i_stocks_can_be_bought_on_i-th_day.cpp
Buy_Stock_with_Transaction_Fee.cpp
Buy_Stock_with_Transaction_Fee.cpp
Buy_and_Sell_a_Share_at_most_twice.cpp
Buy_and_Sell_a_Share_at_most_twice.cpp
Candy.cpp
Candy.cpp
Case_specific_Sorting_of_Strings.cpp
Case_specific_Sorting_of_Strings.cpp
Check_If_two_Line_segments_Intersect.cpp
Check_If_two_Line_segments_Intersect.cpp
Check_Subset_sum_divisible_by_k.cpp
Check_Subset_sum_divisible_by_k.cpp
Check_for_BST.cpp
Check_for_BST.cpp
Check_for_Balanced_Tree.cpp
Check_for_Balanced_Tree.cpp
Check_for_Children_Sum_Property_in_a_Binary_Tree.cpp
Check_for_Children_Sum_Property_in_a_Binary_Tree.cpp
Check_for_Power.cpp
Check_for_Power.cpp
Check_if_All_Bits_Set.cpp
Check_if_All_Bits_Set.cpp
Check_if_Tree_is_Isomorphic.cpp
Check_if_Tree_is_Isomorphic.cpp
Check_if_a_String_is_Subsequence_of_Other.cpp
Check_if_a_String_is_Subsequence_of_Other.cpp
Check_if_a_given_graph_is_tree_or_not.cpp
Check_if_a_given_graph_is_tree_or_not.cpp
Check_if_a_number_is_divisible_by_8.cpp
Check_if_a_number_is_divisible_by_8.cpp
Check_if_a_string_is_repetition_of_its_substring_of_k-length.cpp
Check_if_a_string_is_repetition_of_its_substring_of_k-length.cpp
Check_if_all_leaves_are_at_same_level.cpp
Check_if_all_leaves_are_at_same_level.cpp
Check_if_an_Array_is_Max_Heap.cpp
Check_if_an_Array_is_Max_Heap.cpp
Check_if_frequencies_can_be_equal.cpp
Check_if_frequencies_can_be_equal.cpp
Check_if_frequencies_can_be_equal.java
Check_if_frequencies_can_be_equal.java
Check_if_string_is_rotated_by_two_places.cpp
Check_if_string_is_rotated_by_two_places.cpp
Check_if_strings_are_rotations_of_each_other_or_not.cpp
Check_if_strings_are_rotations_of_each_other_or_not.cpp
Check_whether_BST_contains_Dead_End.cpp
Check_whether_BST_contains_Dead_End.cpp
Check_whether_K-th_bit_is_set_or_not.cpp
Check_whether_K-th_bit_is_set_or_not.cpp
Chocolate_Pickup_II.cpp
Chocolate_Pickup_II.cpp
Chocolates_Pickup.cpp
Chocolates_Pickup.cpp
Choose_and_Swap.cpp
Choose_and_Swap.cpp
Circle_of_strings.cpp
Circle_of_strings.cpp
City_With_the_Smallest_Number_of_Neighbors_at_a_Threshold_Distance.cpp
City_With_the_Smallest_Number_of_Neighbors_at_a_Threshold_Distance.cpp
Clone_a_linked_list_with_next_and_random_pointer.cpp
Clone_a_linked_list_with_next_and_random_pointer.cpp
Clone_an_Undirected_Graph.cpp
Clone_an_Undirected_Graph.cpp
Closest_Neighbour_in_BST.cpp
Closest_Neighbour_in_BST.cpp
Closest_Three_Sum.cpp
Closest_Three_Sum.cpp
Coin_Change_(Count_Ways).cpp
Coin_Change_(Count_Ways).cpp
Coin_Change_(Minimum_Coins).cpp
Coin_Change_(Minimum_Coins).cpp
Coin_Piles.cpp
Coin_Piles.cpp
Column_name_from_a_given_column_number.cpp
Column_name_from_a_given_column_number.cpp
Combination_Sum_II.cpp
Combination_Sum_II.cpp
Common_in_3_Sorted_Arrays.cpp
Common_in_3_Sorted_Arrays.cpp
Compare_two_fractions.cpp
Compare_two_fractions.cpp
Consecutive_1's_not_allowed.cpp
Consecutive_1's_not_allowed.cpp
View all files
Repository files navigation
README
More
items
GFG_sol
Thanks for Visiting
Please 🌟 this repository! It really helps others to find this!!
About
This repository is basically for the reference of GFG questions.
Topics
gfg-cpp
gfg-solutions
Resources
Readme
Activity
Stars
4
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.