Skip to main content

2 docs tagged with "array-and-string"

View all tags

Rebuilding a Number

Two lines of arithmetic - peel the last digit off, append a digit on - and a choice of base. Every problem here is those two lines wearing different clothes.

Two Sum

The hash map is the right answer exactly once. Every later question in this family takes away the thing that made it right.