
Count Largest Group
Lessons Learned: HashMaps
Interview questions straight to your inbox.
Dormant Last read · last published · next check
Read 4 days ago and current, but nothing has been published for 5 years.

Lessons Learned: HashMaps

Question: Invert a binary tree.

Alice and Bob take turns playing a game, with Alice starting first.

Question: Given a non-empty array of integers nums, every element appears twice except for one.

Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i].

Lessons Learned: TreeSet, Array Manipulation

Question: Implement an algorithm to print all valid (properly opened and closed) combinations of n pairs of parentheses.

Lessons Learned: Array parsing

The problem: Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end.

Lessons learned: DFS