Algorithms and problems solved from book algorithms by  robert sedgewick and kevin wayne