Algorithmic problems for interviews