Solutions to the Striver's SDE Sheet has been provided in this repository. The solutions will be uploaded as they are completed.
Disclaimer: The below solutions are for reference only. Please try coming up with your own solutions to complete the sheet, Thank you :)).
- Set Matrix Zeroes
- Pascal's Triangle
- Next Permutation
- Kadane's Algorithm
- Sort an array of 0’s 1’s 2’s
- Stock buy and Sell
- Rotate Matrix
- Merge Overlapping Subintervals
- Merge Two Sorted Arrays Without Using Extra Space
- Find the duplicate in an array of N+1 integers
- Repeat and Missing Number
- Inversion of Array (Pre-req: Merge Sort)
- Search in a 2d Matrix
- Pow(x, n)
- Majority Element (>N/2 times)
- Majority Element (>N/3 times)
- Grid Unique Paths
- Reverse Pairs(Leetcode)
- 2-Sum-Problem
- 4-Sum-Problem
- Longest Consecutive Sequence
- Largest Subarray with 0 sum
- Count number of subarrays with given Xor K
- Longest Substring without repeat
- Reverse a Linked List
- Middle of Linked List
- Merge two sorted Linked List (CPP Soultion also available)
- Remove N-th node from back of LinkedList
- Add two numbers as LinkedList
- Delete a given Node when a node is given
- Find intersection point of Y LinkedList
- Detect a cycle in Linked List
- Reverse a LinkedList in groups of size k
- Check if a LinkedList is palindrome or not
- Find the starting point of the Loop of LinkedList
- Rotate a LinkedList
- Clone a Linked List with random and next pointer
- 3 sum
- Trapping rainwater
- Remove Duplicate from Sorted array
- Max consecutive ones