Topic -5
STACKS AND QUEUES
- Implement Stack from Scratch
- Implement Queue from Scratch
- Check the expression has valid or Balanced parenthesis or not.
- Reverse a String using Stack
- Implement 2 stack in an array
- find the middle element of a stack
- Implement "N" stacks in an Array
- Design a Stack that supports get Min() in O(1) time and O(1) extra space.
- Find the next Greater element
- The celebrity Problem
- Reverse a stack using recursion
- Sort a Stack using recursion
- Arithmetic Expression evaluation
- Evaluation of Postfix expression
- Implement a method to insert an element at its bottom without using any other data structure.
- Merge Overlapping Intervals
- Largest rectangular Area in Histogram
- Length of the Longest Valid Substring
- Expression contains redundant bracket or not
- Implement Stack using Queue
- Implement Stack using Deque
- Stack Permutations (Check if an array is stack permutation of other)
- Implement Queue using Stack
- Implement "n" queue in an array
- Implement a Circular queue
- LRU Cache Implementation
- Reverse a Queue using recursion
- Reverse the first “K” elements of a queue
- Interleave the first half of the queue with second half
- Find the first circular tour that visits all Petrol Pumps
- Minimum time required to rot all oranges
- Distance of nearest cell having 1 in a binary matrix
- First negative integer in every window of size “k”
- Check if all levels of two trees are anagrams or not.
- Sum of minimum and maximum elements of all subarrays of size “k”.
- Minimum sum of squares of character counts in a given string after removing “k” characters.
- Queue based approach or first non-repeating character in a stream.
- Next Smaller Element
Topic -6
LINKED LIST
- Write a Program to reverse the Linked List. (Both Iterative and recursive)
- *Reverse a Linked List in group of Given Size.
- Write a program to Detect loop in a linked list.
- Write a program to Delete loop in a linked list.
- Find the starting point of the loop.
- Remove Duplicates in a sorted Linked List.
- Remove Duplicates in a Un-sorted Linked List.
- Write a Program to Move the last element to Front in a Linked List.
- Add “1” to a number represented as a Linked List.
- Add two numbers represented by linked lists.
- Intersection of two Sorted Linked List.
- Intersection Point of two Linked Lists.
- Merge Sort For Linked lists.
- Quicksort for Linked Lists.
- Find the middle Element of a linked list.
- Check if a linked list is a circular linked list.
- Split a Circular linked list into two halves.
- Write a Program to check whether the Singly Linked list is a palindrome or not.
- Deletion from a Circular Linked List.
- Reverse a Doubly Linked list.
- Find pairs with a given sum in a DLL.
- Count triplets in a sorted DLL whose sum is equal to given value “X”.
- Sort a “k” sorted Doubly Linked list.
- Rotate Doubly Linked list by N nodes.
- Rotate a Doubly Linked list in group of Given Size.
- Can we reverse a linked list in less than O(n) ?
- Why Quicksort is preferred for. Arrays and Merge Sort for Linked Lists ?
- Flatten a Linked List
- Sort a LL of 0's, 1's and 2's
- Clone a linked list with next and random pointer
- Merge K sorted Linked list
- Multiply 2 no. represented by LL
- Delete nodes which have a greater value on right side
- Segregate even and odd nodes in a Linked List
- Program for n’ th node from the end of a Linked List
- Find the first non-repeating character from a stream of characters
Note - Questions in red are most Important ones and asked many times.
Questions in BLUE are important Algorithms to be Considered.
** If having any sort of problems while Solving do let us know in the Comments Section Below**
ONLINE COMPILER ---
Link to part-1 : Take me to part-1
Link to part-2 : Take me to Part-2
1 Comments
Thank you
ReplyDelete