Data Structure & Algorithms Problems List
This is a curated list of all the important data structure & algorithms problems
asked during interviews by top companies
Data Structures & Algorithms Problems
- Search an array where adjacent differ by at most k
- Maximum product subarray
- 3 Sum
- Pair with given sum in rotated array
- Top k frequent elements
- Delete given node from linked list without head
- Longest Palindromic Substring
- Spiral Matrix
- Remove duplicates from an unsorted singly linked list
- Permute Two Arrays such that Sum of Every Pair is Greater or Equal to K
- Rotate Image
- Sort a Linked List with 0s 1s and 2s
- Word Search Grid Traversal
- Common Element in all Rows of a Given Row-Wise Sorted Matrix
- Remove nth node from the end of Linked List
- Counting Sort
- Container with most water
- Reorder List
- Longest Repeating Character Replacement
- Intersection point of two linked lists
- Find the no of islands in a 2D Array/Matrix
- Majority Frequency Element
- Longest subarray with sum divisible by k
- Best Time to Buy and Sell Stock
- Make array elements equal with minimum cost
- Product of array except self
- Group Anagrams
- Remove consecutive characters from a string expression
- Count triplets with sum less than given value
- Count Palindromic Substrings
- Next Permutation
- Count the number of palindromic subsequences
- Set Matrix Zero
- Check for balanced brackets or valid parenthesis in an expression
- Longest Substring Without Repeating Characters