Solve problems with JavaScript
Practicing is boring, but will come the feelingLatest posts with tag "array"
LeetCode: Concatenation of Array
.concat() or spread operator
LeetCode: Check If String Is a Prefix of Array
Accumulated concatenation and check
LeetCode: Find Greatest Common Divisor of Array
Straight forward: min, max then gcd
LeetCode: Search Insert Position
Understand why returns "low/left"
LeetCode: Find Pivot Index
2 prefix sums
LeetCode: Height Checker
Clone and sort
LeetCode: Third Maximum Number
Sort unique numbers
LeetCode: Find All Numbers Disappeared in an Array
Hash table to check existing
LeetCode: Sort Array By Parity
Filter and concat
LeetCode: Replace Elements with Greatest Element on Right Side
Backward iteration, create an array of right max
LeetCode: Valid Mountain Array
Flagging
LeetCode: Check If N and Its Double Exist
Compare with the iterated elements
Popular tags
leetcode
array
string
recursion
hash table
math
dynamic programming
codility
hackerrank
greedy
tree
css
cssbattle
linked list
adventofcode
dfs
sorting
two pointers
codewars
stack
matrix
binary search
binary tree
bfs
bit manipulation
backtracking
graph
sliding window
neetcode
heap
prefix sum
projecteuler
queue
binary search tree
career
cli
dev env
hash map
hashmap
interview
interviewbit
topological sort
trie
union find
yarn