This is some of problems and its solutions
For all solutions here I use JavaScript, the difficulty will vary depending on the time you visit and it'll be updated permanently
Tarek Elkanaria
-
Ransom Note
Hash Map
-
Running Sum of 1d Array
prefix sum array
- Richest Customer Wealth
- Middle of the Linked List
- Number of Steps to Reduce a Number to Zero
- Fizz Buzz
- Problem 485 - Max Consecutive Ones
- Problem 1295 - Find Numbers with Even Number of Digits
- Problem 1089 - Duplicate Zeros
- Problem 88 - Merge Sorted Array
- Problem 27 - Remove Element
- Problem 26 - Remove Duplicates from Sorted Array
- Problem 1346 - Check If N and Its Double Exist
- Problem 941 - Valid Mountain Array
- Problem 1299 - Replace Elements with Greatest Element on Right Side
- Problem 283 - Move Zeroes
- Problem 905 - Sort Array By Parity
- Problem 1051 - Height Checker
- Problem 414 - Third Maximum Number
- Problem 448 - Find All Numbers Disappeared in an Array
- Problem 977 - Squares of a Sorted Array
- Problem 724 Find Pivot Index
- Problem 747 Largest Number At Least Twice of Others
- Problem 66 Plus one
- Problem 498 Diagonal Traverse
- Problem 54 Spiral Matrix
- Problem 118 Pascal's Triangle
- Problem 67 Add Binary
- Problem 28 Find the Index of the First Occurrence in a String
- Problem 14 Longest Common Prefix
- Problem 344 Reverse String
- Problem 561 Array Partition
- Problem 167. Two Sum II - Input Array Is Sorted
- Problem 209 Minimum Size Subarray Sum
- Problem 189 Rotate Array
- Problem 119 Pascal's Triangle II
- Problem 151 Reverse Words in a String
- Problem 557 Reverse Words in a String III
- Problem 217 Contains Duplicate
- Problem 136 Single Number
- Problem 349 Intersection of Two Arrays
- Problem 202 Happy Number
- Problem 1 Two Sum
- Problem 205 Isomorphic Strings
- Problem 599 Minimum Index Sum of Two Lists
- Problem 387 First Unique Character in a String
- Problem 350 Intersection of Two Arrays II
- Problem 219 Contains Duplicate II
- Problem 49 Group Anagrams
- Problem 36 Valid Sudoku
- Problem 771 Jewels and Stones
- Problem 3 Longest Substring Without Repeating Characters
- Problem 454 4 Sum II
- Problem sum even length subarrays
- Problem find special number