Data-Structures-and-Algorithms-GFG
Data Structures and Algorithms problem and solution from GeekforGeeks with CP Books and Notes
Interview Data-Structures-and-Algorithms-GFG Problems from GeekforGeeks
This repository is a collection of my solutions to the must do probelms in geeksforgeeks
0. To get started follow the Books
-
The Data-Structures-and-Algorithms-GFG Book
-
Cracking-the-Data-Structures-and-Algorithms-GFG-Interview-6th-Edition-189-Programming-Questions-and-Solutions
-
Guide to Competitive Programming_ Learning and Improving Algorithms Through Contests
-
Find the element that appears once in sorted array
-
Search in a Rotated Array
-
Binaray Search
-
Sum of Middle Elements of two sorted arrays
-
Quick Sort
-
Merge Sort
-
K-th element of two sorted Arrays
-
Flood fill Algorithm
-
Number of paths
-
Combination Sum – Part 2
-
Special Keyboard
-
Josephus problem
-
Subarray with given sum
-
Count the triplets
-
Kadane’s Algorithm
-
Missing number in array
-
Merge two sorted arrays
-
Rearrange array alternatively
-
Number of pairs
-
Inversion of Array
-
Sort an array of 0s, 1s and 2s
-
Equilibrium point
-
Leaders in an array
-
Minimum Platforms
-
Reverse array in groups.
-
K’th smallest element
-
Trapping Rain Water
-
Pythagorean Triplet
-
Chocolate Distribution Problem
-
Stock buy and sell
-
Element with left side smaller and right side greater
-
Convert array into Zig-Zag fashion
-
Last Index of 1
-
Spirally traversing a matrix
-
Largest Number formed from an Array
-
Reverse words in a given string
-
Permutations of a given string
-
Longest Palindrome in a String
-
Recursively remove all adjacent duplicates
-
Check if string is rotated by two places
-
Roman Number to Integer
-
Anagram
-
Remove Duplicates
-
Form a Palindrome
-
Longest Distinct Characters in the string
-
Implement Atoi
-
Implement strstr
-
Longest Common Prefix
- Finding middle element in a linked list
- Reverse a linked list
- Rotate a Linked List
- Reverse a Linked List in groups of given size
- Intersection point in Y shaped linked lists
- Detect Loop in linked list
- Remove loop in Linked List
- N’th node from end of linked list
- Flattening a Linked List
- Merge two sorted linked lists
- Intersection point of two Linked Lists
- Pairwise swap of a linked list
- Add two numbers represented by linked lists CPP , Add two numbers represented by linked lists Java
- Check if Linked List is Palindrome
- Implement Queue using Linked List
- Implement Stack using Linked List
- Given a linked list of 0s, 1s and 2s, sort it
- Delete without head pointer