Array
Searching Algo
S.No | Question Link | Solution | Difficulty |
---|---|---|---|
1 | Linear Search | Linear Search | Basic |
2 | Binary Search | Binary Search | Basic |
3 | First Bad Version | First Bad Version | Easy |
4 | Search Insert Position | Search Insert Position | Easy |
5 | Search in Rotated Sorted Array | Search in Rotated Sorted Array | Medium |
6 | Find Missing And Repeating | Find Missing And Repeating | Medium |
7 | Majority Element | Majority Element | Medium |
8 | Searching in an array where adjacent differ by at most k | Searching in an array where adjacent differ by at most k | Medium |
9 | Find Pair Given Difference | Find Pair Given Difference | Easy |
10 | Zero Sum Subarrays | Zero Sum Subarrays | Medium |
Sorting Algo
S.No | Question Link | Solution | Difficulty |
---|---|---|---|
1 | Bubble Sort | Bubble Sort | Basic |
2 | Selection Sort | Selection Sort | Basic |
3 | Insertion Sort | Insertion Sort | Easy |
4 | Merge Sort | Merge Sort | Easy |
Martix
S.No | Question Link | Solution | Difficulty |
---|---|---|---|
1 | Spirally traversing a matrix | Spirally traversing a matrix | Medium |
2 | Search a 2D Matrix | Search a 2D Matrix | Medium |
3 | Row with max 1s | Row with max 1s | Medium |
4 | Sorted matrix | Sorted matrix | Basic |
5 | Maximal Square | Maximal Square | Medium |
6 | Rotate Image | Rotate Image | Medium |
7 | Common Elements Present In All Rows Of Matrix | Common Elements Present In All Rows Of Matrix | Medium |
8 | Solve the Sudoku | Solve the Sudoku | Medium |
String
S.No | Question Link | Solution | Difficulty |
---|---|---|---|
1 | Longest Common Prefix in an Array | Longest Common Prefix in an Array | Medium |
2 | Reverse words in a given string | Reverse words in a given string | Easy |
3 | Permutations of a given string | Permutations of a given string | Basic |
4 | Longest Palindrome in a String | Longest Palindrome in a String | Medium |
5 | Roman Number to Integer | Roman Number to Integer | Easy |
6 | Convert to Roman No | Convert to Roman No r | Easy |
7 | Anagram | Anagram | Easy |
8 | Longest Substring Without Repeating Characters | Longest Substring Without Repeating Characters | Medium |
9 | First Unique Character in a String | First Unique Character in a String | Medium |
10 | Search Pattern | Search Pattern | Medium |
LinkedList
Tree
Binary Search Tree
S.No | Question Link | Solution | Difficulty |
---|---|---|---|
1 | Check for BST | Check for BST | Medium |
2 | Lowest Common Ancestor in a BST | Lowest Common Ancestor in a BST | Medium |
3 | Largest BST | Largest BST | Medium |
4 | Insert a node in a BST | Insert a node in a BST | Basic |
5 | Minimum element in BST | Minimum element in BST | Basic |
6 | Count BST nodes that lie in a given range | Count BST nodes that lie in a given range | Medium |
7 | Flatten BST To A Sorted List | Flatten BST To A Sorted List | Medium |
8 | Preorder to Postorder | Preorder to Postorder | Medium |
9 | Normal BST to Balanced BST | Normal BST to Balanced BST | Easy |
Stack and Queue
Dynamic Programming
Mathematics
S.No | Question Link | Solution | Difficulty |
---|---|---|---|
1 | Find Nth root of M | Find Nth root of M | Easy |
2 | Kth Smallest Factor | Kth Smallest Factor | Easy |
3 | Square root of a number | Square root of a number | Medium |