Solve problems with JavaScript

Practicing is boring, but will come the feeling

Latest posts

LeetCode: Sort List

Yeah I skipped the follow-up

LeetCode: Add Strings

Add digits with carry

LeetCode: Multiply Strings

Will make this better. Word promised!

LeetCode: Where Will the Ball Fall

If I remember correctly, Alex K. also loves recursion

LeetCode: Spiral Matrix

Writing recursive function is fun

LeetCode: Happy Number

Use a Set to detect cycle

LeetCode: Number of Islands

To be consistent, first find out how to make it easy

LeetCode: Validate Binary Search Tree

Traverse in-order and validate the traversed result

LeetCode: Counting Bits

Convert to binary with toString() method

LeetCode: Is Subsequence

The author is not smart enough to come up with the DP solution in the first place

LeetCode: Combination Sum

Recursively try all the possible cases

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

HoningJS

Search Posts