├── .gitattributes ├── .gitignore ├── Difficulty: Medium ├── Jump Game │ ├── README.md │ └── jump-game.java └── Topological sort │ ├── README.md │ └── topological-sort.java ├── arrays ├── ConvertArrayInZigZagManner.cpp ├── ElementOnLeftSideIsSmallerAndRightIsGreater.cpp ├── EquilibriumPoint.cpp ├── LastIndexOfOne.cpp ├── MaximumIndex.cpp ├── MaximumRectangularAreaInHistogram.cpp ├── RearrangeArrayAlternately.cpp ├── ReverseArrayInGroups.cpp ├── SequentialDigits.cpp ├── SmallestNumberOnLeft.cpp ├── StockBuySell.cpp ├── SubarrayWithGivenSum.cpp ├── TrappingRainWater.cpp ├── chocolate_distribution_problem.cpp ├── closest_sum_to_zero.cpp ├── count_possible_triangles.cpp ├── count_triplets.cpp ├── equilibrium_point.cpp ├── inversion_of_array.cpp ├── kadaneAlgorithm.cpp ├── kth_smallest_element.cpp ├── leaders_in_array.cpp ├── merge_without_extra_space.cpp ├── minimum_platforms.cpp ├── missing_number_in_array.cpp ├── number_of_pairs.cpp ├── rearrange_array_alternatively.cpp └── sort_0s_1s_2s.cpp ├── backtracking ├── N_queenProblem.cpp ├── RatInMazeProblem.cpp └── SolveTheSuduko.cpp ├── bit magic ├── bit_difference.cpp ├── check_kth_bit.cpp ├── first_set_bit.cpp ├── maximum_subset_xor.cpp ├── party_of_couples.cpp ├── powerOf2.cpp ├── rightmost_different_bit.cpp ├── rotate_bits.cpp ├── set_kth_bit.cpp └── toggle_bits_in_range.cpp ├── divide and conquer ├── BinarySearch.cpp ├── KthElementOfTwoSortedArrays.cpp ├── MergeSort.cpp ├── SearchInRotatedArray.cpp ├── SumOfMiddleElementsOfTwoSortedArray.cpp ├── element_appeared_once_in_sorted_array.cpp └── search_in_rotated_array.cpp ├── dynamic programming ├── 0-1Knapsack.cpp ├── BoxStacking.cpp ├── EggDropPuzzle.cpp ├── LongestCommonSubsequence.cpp ├── LongestCommonSubstring.cpp ├── LongestIncreasingSubsequence.cpp ├── LongestPathInMatrix.cpp ├── MaxLengthChain.cpp ├── MaximizeCutSegments.cpp ├── MaximumSumIncreasingSubsequence.cpp ├── MinimumNoOfJumps.cpp ├── MinimumOperations.cpp ├── MinimumSumPartition.cpp ├── NoOfWaysToCoverDistance.cpp ├── OptimalStrategyForGame.cpp ├── PartitionEqualSubsetSum.cpp ├── ShortestCommonSupersequence.cpp ├── coin_change.cpp └── edit_distance.cpp ├── graph ├── AlienDictionary.cpp ├── CircleOfStrings.cpp ├── DetectCycleInDirectedGraph.cpp ├── DetectCycleInUndirectedGraph.cpp ├── FindIfPathExists.cpp ├── FindNoOfIslands.cpp ├── FloydWarshall.cpp ├── Kosaraju'sAlgo.cpp ├── MinimumCostPath.cpp ├── MinimumSwapToSort.cpp ├── ShortestSourceToDestinationPath.cpp ├── SnakeAndLadder.cpp ├── StronglyConnectedComponents.cpp ├── WordBoggle.cpp ├── bfs.cpp ├── dfs.cpp └── topologicalSort.cpp ├── greedy ├── ActivitySelection.cpp ├── GeekCollectsTheBall.cpp ├── MaximizeToys.cpp ├── MinimizeTheSumOfProduct.cpp ├── N_meeting_in_a_room.cpp └── ShopInCandyStore.cpp ├── hashing ├── ArrayPairSumDivisibiltyProblem.cpp ├── CommonElements.cpp ├── CountDistinctElementInEveryWindow.cpp ├── FindAllSumFourNumber.cpp ├── LargestSubarrayWith0sum.cpp ├── LongestConsecutiveSubsequence.cpp ├── SortArrayAccordingToOther.cpp ├── SortingArrayOnFrequency.cpp └── SwappingPairsMakeSumEqual.cpp ├── linked list ├── FlatteningLinkedList.cpp ├── IntersectionPointInY-ShapedLinkedList.cpp ├── LoopInLinkedList.cpp ├── NthNodeFromEndOfLinkedList.cpp ├── RemoveLoopInLinkedList.cpp ├── ReverseLinkedListInGivenGroup.cpp ├── finding_middle_element.cpp ├── reverse_linked_list.cpp └── rotate_linked_list.cpp ├── recursion ├── DecodeString.cpp ├── floodFill.cpp ├── josephusProblem.cpp ├── numberOfPaths.cpp └── specialKeyboard.cpp ├── stack and queue ├── DecodeString.cpp ├── GetMinElementFromStack.cpp ├── QueueUsingTwoStack.cpp ├── StackUsingTwoQueue.cpp └── parenthesis_checker.cpp ├── string ├── Anagram.cpp ├── FormPalindrome.cpp ├── ImplementAtoi.cpp ├── ImplementStrstr.cpp ├── LongestCommonPrefix.cpp ├── LongestCommonPrefixInArray.cpp ├── LongestDistinctCharacter.cpp ├── PermutationOfString.cpp ├── RemoveDuplicates.cpp ├── ReverseWordInString.cpp ├── RomanToInteger.cpp └── RotateStringByTwoPlace.cpp └── tree and bst ├── BinaryTreeToDLL.cpp ├── BottomViewOfBinaryTree.cpp ├── ConnectNodesAtSameLevel.cpp ├── CountLeafNodes.cpp ├── HeightOfBinaryTree.cpp ├── LevelOrderTraversalInSpiralForm.cpp ├── LowestCommonAncestorInBinaryTree.cpp ├── MaximumSumBSTBinaryTree.cpp ├── MirrorTree.cpp ├── RecursivelyRemoveAllAdjacentDuplicates.cpp ├── SerializeAndDeserializeBinaryTree.cpp ├── SumTree.cpp ├── SymmetricTree.cpp ├── VerticalTraversalOfBinaryTree.cpp ├── check_for_bst.cpp └── left_view_of_binary_tee.cpp /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | *.bin 3 | *.prob -------------------------------------------------------------------------------- /Difficulty: Medium/Jump Game/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/Difficulty: Medium/Jump Game/README.md -------------------------------------------------------------------------------- /Difficulty: Medium/Jump Game/jump-game.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/Difficulty: Medium/Jump Game/jump-game.java -------------------------------------------------------------------------------- /Difficulty: Medium/Topological sort/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/Difficulty: Medium/Topological sort/README.md -------------------------------------------------------------------------------- /Difficulty: Medium/Topological sort/topological-sort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/Difficulty: Medium/Topological sort/topological-sort.java -------------------------------------------------------------------------------- /arrays/ConvertArrayInZigZagManner.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/ConvertArrayInZigZagManner.cpp -------------------------------------------------------------------------------- /arrays/ElementOnLeftSideIsSmallerAndRightIsGreater.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/ElementOnLeftSideIsSmallerAndRightIsGreater.cpp -------------------------------------------------------------------------------- /arrays/EquilibriumPoint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/EquilibriumPoint.cpp -------------------------------------------------------------------------------- /arrays/LastIndexOfOne.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/LastIndexOfOne.cpp -------------------------------------------------------------------------------- /arrays/MaximumIndex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/MaximumIndex.cpp -------------------------------------------------------------------------------- /arrays/MaximumRectangularAreaInHistogram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/MaximumRectangularAreaInHistogram.cpp -------------------------------------------------------------------------------- /arrays/RearrangeArrayAlternately.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/RearrangeArrayAlternately.cpp -------------------------------------------------------------------------------- /arrays/ReverseArrayInGroups.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/ReverseArrayInGroups.cpp -------------------------------------------------------------------------------- /arrays/SequentialDigits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/SequentialDigits.cpp -------------------------------------------------------------------------------- /arrays/SmallestNumberOnLeft.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/SmallestNumberOnLeft.cpp -------------------------------------------------------------------------------- /arrays/StockBuySell.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/StockBuySell.cpp -------------------------------------------------------------------------------- /arrays/SubarrayWithGivenSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/SubarrayWithGivenSum.cpp -------------------------------------------------------------------------------- /arrays/TrappingRainWater.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/TrappingRainWater.cpp -------------------------------------------------------------------------------- /arrays/chocolate_distribution_problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/chocolate_distribution_problem.cpp -------------------------------------------------------------------------------- /arrays/closest_sum_to_zero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/closest_sum_to_zero.cpp -------------------------------------------------------------------------------- /arrays/count_possible_triangles.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/count_possible_triangles.cpp -------------------------------------------------------------------------------- /arrays/count_triplets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/count_triplets.cpp -------------------------------------------------------------------------------- /arrays/equilibrium_point.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/equilibrium_point.cpp -------------------------------------------------------------------------------- /arrays/inversion_of_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/inversion_of_array.cpp -------------------------------------------------------------------------------- /arrays/kadaneAlgorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/kadaneAlgorithm.cpp -------------------------------------------------------------------------------- /arrays/kth_smallest_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/kth_smallest_element.cpp -------------------------------------------------------------------------------- /arrays/leaders_in_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/leaders_in_array.cpp -------------------------------------------------------------------------------- /arrays/merge_without_extra_space.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/merge_without_extra_space.cpp -------------------------------------------------------------------------------- /arrays/minimum_platforms.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/minimum_platforms.cpp -------------------------------------------------------------------------------- /arrays/missing_number_in_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/missing_number_in_array.cpp -------------------------------------------------------------------------------- /arrays/number_of_pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/number_of_pairs.cpp -------------------------------------------------------------------------------- /arrays/rearrange_array_alternatively.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/rearrange_array_alternatively.cpp -------------------------------------------------------------------------------- /arrays/sort_0s_1s_2s.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/arrays/sort_0s_1s_2s.cpp -------------------------------------------------------------------------------- /backtracking/N_queenProblem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/backtracking/N_queenProblem.cpp -------------------------------------------------------------------------------- /backtracking/RatInMazeProblem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/backtracking/RatInMazeProblem.cpp -------------------------------------------------------------------------------- /backtracking/SolveTheSuduko.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/backtracking/SolveTheSuduko.cpp -------------------------------------------------------------------------------- /bit magic/bit_difference.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/bit_difference.cpp -------------------------------------------------------------------------------- /bit magic/check_kth_bit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/check_kth_bit.cpp -------------------------------------------------------------------------------- /bit magic/first_set_bit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/first_set_bit.cpp -------------------------------------------------------------------------------- /bit magic/maximum_subset_xor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/maximum_subset_xor.cpp -------------------------------------------------------------------------------- /bit magic/party_of_couples.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/party_of_couples.cpp -------------------------------------------------------------------------------- /bit magic/powerOf2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/powerOf2.cpp -------------------------------------------------------------------------------- /bit magic/rightmost_different_bit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/rightmost_different_bit.cpp -------------------------------------------------------------------------------- /bit magic/rotate_bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/rotate_bits.cpp -------------------------------------------------------------------------------- /bit magic/set_kth_bit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/set_kth_bit.cpp -------------------------------------------------------------------------------- /bit magic/toggle_bits_in_range.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/bit magic/toggle_bits_in_range.cpp -------------------------------------------------------------------------------- /divide and conquer/BinarySearch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/divide and conquer/BinarySearch.cpp -------------------------------------------------------------------------------- /divide and conquer/KthElementOfTwoSortedArrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/divide and conquer/KthElementOfTwoSortedArrays.cpp -------------------------------------------------------------------------------- /divide and conquer/MergeSort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/divide and conquer/MergeSort.cpp -------------------------------------------------------------------------------- /divide and conquer/SearchInRotatedArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/divide and conquer/SearchInRotatedArray.cpp -------------------------------------------------------------------------------- /divide and conquer/SumOfMiddleElementsOfTwoSortedArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/divide and conquer/SumOfMiddleElementsOfTwoSortedArray.cpp -------------------------------------------------------------------------------- /divide and conquer/element_appeared_once_in_sorted_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/divide and conquer/element_appeared_once_in_sorted_array.cpp -------------------------------------------------------------------------------- /divide and conquer/search_in_rotated_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/divide and conquer/search_in_rotated_array.cpp -------------------------------------------------------------------------------- /dynamic programming/0-1Knapsack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/0-1Knapsack.cpp -------------------------------------------------------------------------------- /dynamic programming/BoxStacking.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/BoxStacking.cpp -------------------------------------------------------------------------------- /dynamic programming/EggDropPuzzle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/EggDropPuzzle.cpp -------------------------------------------------------------------------------- /dynamic programming/LongestCommonSubsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/LongestCommonSubsequence.cpp -------------------------------------------------------------------------------- /dynamic programming/LongestCommonSubstring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/LongestCommonSubstring.cpp -------------------------------------------------------------------------------- /dynamic programming/LongestIncreasingSubsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/LongestIncreasingSubsequence.cpp -------------------------------------------------------------------------------- /dynamic programming/LongestPathInMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/LongestPathInMatrix.cpp -------------------------------------------------------------------------------- /dynamic programming/MaxLengthChain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/MaxLengthChain.cpp -------------------------------------------------------------------------------- /dynamic programming/MaximizeCutSegments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/MaximizeCutSegments.cpp -------------------------------------------------------------------------------- /dynamic programming/MaximumSumIncreasingSubsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/MaximumSumIncreasingSubsequence.cpp -------------------------------------------------------------------------------- /dynamic programming/MinimumNoOfJumps.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/MinimumNoOfJumps.cpp -------------------------------------------------------------------------------- /dynamic programming/MinimumOperations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/MinimumOperations.cpp -------------------------------------------------------------------------------- /dynamic programming/MinimumSumPartition.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/MinimumSumPartition.cpp -------------------------------------------------------------------------------- /dynamic programming/NoOfWaysToCoverDistance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/NoOfWaysToCoverDistance.cpp -------------------------------------------------------------------------------- /dynamic programming/OptimalStrategyForGame.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/OptimalStrategyForGame.cpp -------------------------------------------------------------------------------- /dynamic programming/PartitionEqualSubsetSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/PartitionEqualSubsetSum.cpp -------------------------------------------------------------------------------- /dynamic programming/ShortestCommonSupersequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/ShortestCommonSupersequence.cpp -------------------------------------------------------------------------------- /dynamic programming/coin_change.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/coin_change.cpp -------------------------------------------------------------------------------- /dynamic programming/edit_distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/dynamic programming/edit_distance.cpp -------------------------------------------------------------------------------- /graph/AlienDictionary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/AlienDictionary.cpp -------------------------------------------------------------------------------- /graph/CircleOfStrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/CircleOfStrings.cpp -------------------------------------------------------------------------------- /graph/DetectCycleInDirectedGraph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/DetectCycleInDirectedGraph.cpp -------------------------------------------------------------------------------- /graph/DetectCycleInUndirectedGraph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/DetectCycleInUndirectedGraph.cpp -------------------------------------------------------------------------------- /graph/FindIfPathExists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/FindIfPathExists.cpp -------------------------------------------------------------------------------- /graph/FindNoOfIslands.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/FindNoOfIslands.cpp -------------------------------------------------------------------------------- /graph/FloydWarshall.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/FloydWarshall.cpp -------------------------------------------------------------------------------- /graph/Kosaraju'sAlgo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/Kosaraju'sAlgo.cpp -------------------------------------------------------------------------------- /graph/MinimumCostPath.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/MinimumCostPath.cpp -------------------------------------------------------------------------------- /graph/MinimumSwapToSort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/MinimumSwapToSort.cpp -------------------------------------------------------------------------------- /graph/ShortestSourceToDestinationPath.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/ShortestSourceToDestinationPath.cpp -------------------------------------------------------------------------------- /graph/SnakeAndLadder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/SnakeAndLadder.cpp -------------------------------------------------------------------------------- /graph/StronglyConnectedComponents.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/StronglyConnectedComponents.cpp -------------------------------------------------------------------------------- /graph/WordBoggle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/WordBoggle.cpp -------------------------------------------------------------------------------- /graph/bfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/bfs.cpp -------------------------------------------------------------------------------- /graph/dfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/dfs.cpp -------------------------------------------------------------------------------- /graph/topologicalSort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/graph/topologicalSort.cpp -------------------------------------------------------------------------------- /greedy/ActivitySelection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/greedy/ActivitySelection.cpp -------------------------------------------------------------------------------- /greedy/GeekCollectsTheBall.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/greedy/GeekCollectsTheBall.cpp -------------------------------------------------------------------------------- /greedy/MaximizeToys.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/greedy/MaximizeToys.cpp -------------------------------------------------------------------------------- /greedy/MinimizeTheSumOfProduct.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/greedy/MinimizeTheSumOfProduct.cpp -------------------------------------------------------------------------------- /greedy/N_meeting_in_a_room.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/greedy/N_meeting_in_a_room.cpp -------------------------------------------------------------------------------- /greedy/ShopInCandyStore.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/greedy/ShopInCandyStore.cpp -------------------------------------------------------------------------------- /hashing/ArrayPairSumDivisibiltyProblem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/ArrayPairSumDivisibiltyProblem.cpp -------------------------------------------------------------------------------- /hashing/CommonElements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/CommonElements.cpp -------------------------------------------------------------------------------- /hashing/CountDistinctElementInEveryWindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/CountDistinctElementInEveryWindow.cpp -------------------------------------------------------------------------------- /hashing/FindAllSumFourNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/FindAllSumFourNumber.cpp -------------------------------------------------------------------------------- /hashing/LargestSubarrayWith0sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/LargestSubarrayWith0sum.cpp -------------------------------------------------------------------------------- /hashing/LongestConsecutiveSubsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/LongestConsecutiveSubsequence.cpp -------------------------------------------------------------------------------- /hashing/SortArrayAccordingToOther.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/SortArrayAccordingToOther.cpp -------------------------------------------------------------------------------- /hashing/SortingArrayOnFrequency.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/SortingArrayOnFrequency.cpp -------------------------------------------------------------------------------- /hashing/SwappingPairsMakeSumEqual.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/hashing/SwappingPairsMakeSumEqual.cpp -------------------------------------------------------------------------------- /linked list/FlatteningLinkedList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/FlatteningLinkedList.cpp -------------------------------------------------------------------------------- /linked list/IntersectionPointInY-ShapedLinkedList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/IntersectionPointInY-ShapedLinkedList.cpp -------------------------------------------------------------------------------- /linked list/LoopInLinkedList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/LoopInLinkedList.cpp -------------------------------------------------------------------------------- /linked list/NthNodeFromEndOfLinkedList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/NthNodeFromEndOfLinkedList.cpp -------------------------------------------------------------------------------- /linked list/RemoveLoopInLinkedList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/RemoveLoopInLinkedList.cpp -------------------------------------------------------------------------------- /linked list/ReverseLinkedListInGivenGroup.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/ReverseLinkedListInGivenGroup.cpp -------------------------------------------------------------------------------- /linked list/finding_middle_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/finding_middle_element.cpp -------------------------------------------------------------------------------- /linked list/reverse_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/reverse_linked_list.cpp -------------------------------------------------------------------------------- /linked list/rotate_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/linked list/rotate_linked_list.cpp -------------------------------------------------------------------------------- /recursion/DecodeString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/recursion/DecodeString.cpp -------------------------------------------------------------------------------- /recursion/floodFill.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/recursion/floodFill.cpp -------------------------------------------------------------------------------- /recursion/josephusProblem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/recursion/josephusProblem.cpp -------------------------------------------------------------------------------- /recursion/numberOfPaths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/recursion/numberOfPaths.cpp -------------------------------------------------------------------------------- /recursion/specialKeyboard.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/recursion/specialKeyboard.cpp -------------------------------------------------------------------------------- /stack and queue/DecodeString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/stack and queue/DecodeString.cpp -------------------------------------------------------------------------------- /stack and queue/GetMinElementFromStack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/stack and queue/GetMinElementFromStack.cpp -------------------------------------------------------------------------------- /stack and queue/QueueUsingTwoStack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/stack and queue/QueueUsingTwoStack.cpp -------------------------------------------------------------------------------- /stack and queue/StackUsingTwoQueue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/stack and queue/StackUsingTwoQueue.cpp -------------------------------------------------------------------------------- /stack and queue/parenthesis_checker.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/stack and queue/parenthesis_checker.cpp -------------------------------------------------------------------------------- /string/Anagram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/Anagram.cpp -------------------------------------------------------------------------------- /string/FormPalindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/FormPalindrome.cpp -------------------------------------------------------------------------------- /string/ImplementAtoi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/ImplementAtoi.cpp -------------------------------------------------------------------------------- /string/ImplementStrstr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/ImplementStrstr.cpp -------------------------------------------------------------------------------- /string/LongestCommonPrefix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/LongestCommonPrefix.cpp -------------------------------------------------------------------------------- /string/LongestCommonPrefixInArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/LongestCommonPrefixInArray.cpp -------------------------------------------------------------------------------- /string/LongestDistinctCharacter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/LongestDistinctCharacter.cpp -------------------------------------------------------------------------------- /string/PermutationOfString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/PermutationOfString.cpp -------------------------------------------------------------------------------- /string/RemoveDuplicates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/RemoveDuplicates.cpp -------------------------------------------------------------------------------- /string/ReverseWordInString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/ReverseWordInString.cpp -------------------------------------------------------------------------------- /string/RomanToInteger.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/RomanToInteger.cpp -------------------------------------------------------------------------------- /string/RotateStringByTwoPlace.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/string/RotateStringByTwoPlace.cpp -------------------------------------------------------------------------------- /tree and bst/BinaryTreeToDLL.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/BinaryTreeToDLL.cpp -------------------------------------------------------------------------------- /tree and bst/BottomViewOfBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/BottomViewOfBinaryTree.cpp -------------------------------------------------------------------------------- /tree and bst/ConnectNodesAtSameLevel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/ConnectNodesAtSameLevel.cpp -------------------------------------------------------------------------------- /tree and bst/CountLeafNodes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/CountLeafNodes.cpp -------------------------------------------------------------------------------- /tree and bst/HeightOfBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/HeightOfBinaryTree.cpp -------------------------------------------------------------------------------- /tree and bst/LevelOrderTraversalInSpiralForm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/LevelOrderTraversalInSpiralForm.cpp -------------------------------------------------------------------------------- /tree and bst/LowestCommonAncestorInBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/LowestCommonAncestorInBinaryTree.cpp -------------------------------------------------------------------------------- /tree and bst/MaximumSumBSTBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/MaximumSumBSTBinaryTree.cpp -------------------------------------------------------------------------------- /tree and bst/MirrorTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/MirrorTree.cpp -------------------------------------------------------------------------------- /tree and bst/RecursivelyRemoveAllAdjacentDuplicates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/RecursivelyRemoveAllAdjacentDuplicates.cpp -------------------------------------------------------------------------------- /tree and bst/SerializeAndDeserializeBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/SerializeAndDeserializeBinaryTree.cpp -------------------------------------------------------------------------------- /tree and bst/SumTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/SumTree.cpp -------------------------------------------------------------------------------- /tree and bst/SymmetricTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/SymmetricTree.cpp -------------------------------------------------------------------------------- /tree and bst/VerticalTraversalOfBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/VerticalTraversalOfBinaryTree.cpp -------------------------------------------------------------------------------- /tree and bst/check_for_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/check_for_bst.cpp -------------------------------------------------------------------------------- /tree and bst/left_view_of_binary_tee.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varunswing/GeeksForGeeks/HEAD/tree and bst/left_view_of_binary_tee.cpp --------------------------------------------------------------------------------