Notion Database - all of my notes on the problems
- 1. Two Sum
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 4. Median of Two Sorted Arrays
- 5. Longest Palindromic Substring
- 7. Generate Parentheses
- 11. Container With Most Water
- 15. 3Sum
- 22. Generate Parentheses
- 33. Search in Rotated Sorted Array
- 53. Maximum Subarray
- 121. Best Time to Buy and Sell Stock
- 152. Maximum Product Subarray
- 153. Find Minimum in Rotated Sorted Array
- 190. Reverse Bits
- 191. Number of 1 Bits
- 198. House Robber
- 200. Number of Islands
- 213. House Robber II
- 217. Contains Duplicate
- 238. Product of Array Except Self
- 268. Missing Number
- 371. Sum of Two Integers
- 338. Counting Bits
- 394. Decode String
solution.js - The solution I submitted
my_solution.js - My attemp with logs and comments
o_solution.js - Online/others' solutions
Run for JS
node ./.../solution.js
Run for Elixir
iex ./.../solution.ex
Quick create in bash
chapter=11 && mkdir ./$chapter && touch ./$chapter/my_solution.js && touch ./$chapter/solution.js && alias x="node ./$chapter/my_solution.js"