An Ode to the Coding Tests…
2 min readMar 3, 2019
Here is an attempt to begin with one of those 99 Day Challenges. I am not sure if coming up with solutions for 99 Competitive Coding test problems qualifies as a decent challenge. But, here it goes…
- Two Sum — HashMap approach
- Add Two Numbers
- Reverse Integer
- Reverse Integer Cont…
- Valid Parentheses
- Valid Parentheses w/o Stack
- String to Integer (atoi)
- String to Integer (atoi) Cont…
- String to Integer (atoi) Cont…(Faster)
- Roman to Integer
- Roman to Integer Cont…
- Roman to Integer Cont(2)…
- Merge Two Sorted Lists
- Merge Two Sorted Lists Cont…
- Merge k Sorted Lists
- Merge k Sorted Lists Cont… (Slower)
- Merge k Sorted Lists Cont…(Divide and Conquer)
- Longest Common Prefix
- Longest Common Prefix Cont…
- Remove Duplicates from Sorted Array
- Implement strStr()
- Count and Say
- Count and Say Cont…
- Count and Say. Or may be Not!
- Knuth-Morris-Pratt Algorithm Implementation Part — 1
- Knuth-Morris-Pratt Algorithm Implementation Part — 2
- Maximum Subarray
- Maximum Subarray, using DP
- Plus one
- Number of Islands
- Median of Two Sorted Arrays
- Longest Substring without Repeating Characters
- Longest Substring without Repeating Characters Cont…
- Longest Palindromic Substring
- Longest Palindromic Substring Cont…
- Container with most water
- 3Sum
- 3Sum Cont…
- Generate Parentheses
- Letter Combinations of a Phone Number
- Sqrt(x)
- Sqrt(x) Cont…
- Remove Nth Node From End of List
- Divide Two Integers
- Search in Rotated Sorted Array
- Search in Rotated Sorted Array Cont…
- Find First and Last Position of Element in Sorted Array
- First Missing Positive
- Sort Colors
- Jump Game
- Jump Game Cont…
- Valid Sudoku
- Valid Sudoku Cont…
- Group Anagrams
- Valid Anagram
- Valid Anagram Cont…
- Merge Sorted Array
- Subsets
- Subsets Cont…
- Permutations
- Set Matrix Zeroes
- Set Matrix Zeroes Cont…
- Pow(x,n)
- Word Search
- Word Search Cont…
- Largest Rectangle in Histogram
- Largest Rectangle in Histogram Cont…
- Contains Duplicate
- Contains Duplicate Cont…
- Majority Element
- Majority Element Cont…
- Number of 1 Bits
- Palindrome Number
- House Robber
- Rotate Image
- LRU Cache
- Symmetric Tree
- Symmetric Tree Cont…
- Maximum Depth of Binary Tree
- Maximum Depth of Binary Tree Cont…
- Longest Consecutive Sequence
- Convert Sorted Array to Binary Search Tree
- Single Number
- Reverse Linked List
- Happy Number
- Excel Sheet Column Number
- Pascal’s Triangle
- Best Time to Buy and Sell Stock
- Best Time to Buy and Sell Stock II
- Linked List Cycle
- Min Stack
- Intersection of Two Linked Lists
- Factorial Trailing Zeroes
- Rotate Array
- Reverse Bits
- Count Primes
- Palindrome Linked List
- Delete Node in Linked List
- Missing Number
- Move Zeroes