Solution for Hanoi problem in JS
"Tower of Hanoi" is famous task. It has simple recursive solution.
Find a loop in linked list
Today I'll show how to find a loop in linked list in linear time.
Solution for coin problem by dynamic programming
Some interview question can be soled by dynamic programming. One of such is coin problem - express
an amount of money with minimal coin number.
Longest substring without repeating characters
Another interesting task for interview is "Longest substring without repeating characters".
Permutations of parentheses
Usual task for interview: Print all possible n pairs of balanced parentheses.