NOTE:
This has been done as part of self learning. Most of the problems mentioned here are from Leetcode. However some good problems are also from the geekforgeeks and hackerrank.
- Here's the list of 75 must do leetcode practice problems that can be helpfull.
Basics:
- running-sum-of-1d-array
- kids-with-the-greatest-number-of-candies
- shuffle-the-array
- richest-customer-wealth
- trapping-rain-water
- maximum-of-absolute-value-expression
- spiral-matrix-ii
- maximum-gap
- maximum-subarray
- set-matrix-zeroes
- next-permutation
- longest-subarray-non-negative-integers
One Dimensional & Two Dimensions Arrays:
- cells-with-odd-values-in-a-matrix
- matrix-diagonal-sum
- count-negative-numbers-in-a-sorted-matrix
- The-k-weakest-rows-in-a-matrix
- Lucky-numbers-in-a-matrix
- Toeplitz-matrix
- special-positions-in-a-binary-matrix
- transpose-matrix
- reshape-the-matrix
- determine-whether-matrix-can-be-obtained-by-rotation
- search-a-2d-matrix-ii
- range-sum-query-2d-immutable
- max-chunks-to-make-sorted
- sum-of-all-submatrices-of-a-given-matrix
- number-of-submatrices-that-sum-to-target
- max-chunks-to-make-sorted-ii
- count-negative-numbers-in-a-sorted-matrix
- matrix-diagonal-sum
- minimum-swaps-required-bring-elements-less-equal-k-together
- rearrange-array-alternating-positive-negative-items-o1-extra-space
- subarray-sum-equals-k
Based on mathematical Logics:
- largest-number-divides-x-co-prime-y
- implement-rand10-using-rand7
- four-divisors
- total-number-divisors-given-number
- number-of-open-doors
- day-of-the-week
- finding-position
- Rectangle-overlap
- excel-sheet-column-title
- Unique Paths
- Rectangle Area
- Number of Digit One
- Check If Array Pairs Are Divisible by k
- Subsequences of size three in an array whose sum is divisible by m
- Factorial Trailing Zeroes
- Permutation Sequence
- Nth Magical Number
- Find nth Magic Number
- Search a 2-D matrix
- Magnetic force between two balls
- Smallest good base
- Capacity to ship packages within d days
- Divide two integers
- Sum of bit difference among all pairs
- Check an array can be made 0 by splitting and merging repeatedly
- XOR Query of a sub array
- Total Hamming distance
- Search a 2 D Matrix
- Preimage size of factorial zeroes function
- Kth Largest element in array
- Counting Inversions
- Reverse Pairs
- Count of smaller numbers after self
- Wiggle sort II
- Sort Colors
- Minimum number of bottles visible when a bottle can be enclosed inside another bottle
- Kth Closest points to origin
- Nut bolts problem/ Lock Key problem
- Minimum absolute Difference
- Sort Array by parity
- Max Chunks to make sorted
Challenge 2:
- Ugly Number II
- Sub array sum equals K
- Two Sum II
- K Diff Pairs in an array
- Minimize-maxai-bj-ck-minai-bj-ck-three-different-sorted-arrays
- Container with most water
- Valid triangle number
- Find K closest elements
- Find K pairs with smallest sums
- Find Largest Subarray with Zero Sum
- Longest Consecutive sequence
- Subarray sum equals k
- Valid Anagram
- Valid Sudoku
- Max points on a line
- Longest substring without repeating characters
- Minimum window substring
- Palindrome pairs
- Design Hashmaps
- Set Matrix Zeroes
- Find pair with sum in array
- Reverse polish Notation
- Daily Temperature
- Min Stack
- Expression contains redundant brackets
- Largest rectangle in histogram
- Implement Stack using Queues
- Implement Queue using Stacks
- Sliding window maximum
- Longest valid parehtheses
- Gas Station
- Number of good pairs
- Jewels & Stones
- Count number smaller than current number
- Sum of unique elements
- N repeated elements
- Unique number of occurences
- Subdomain visit count
- Find common characters
- Words formed by characters
- Island perimeter
- Single number
- Design Linked List
- Middle of the Linked List
- Merge two sorted arrays
- Remove nth node from end of list
- Linked list cycle
- Linked list cycle II
- Sum of two integers
- Koko eating bananas
- Letter combination of a phone number
- Maximum units on a truck
- Most profit assigning work
- Remove duplicates from sorted array II
- Palindrome Linked List
- Reverse Linked List II
- Sort List
Challenge 3: