####Cracking The Coding Interview
An attempt to solve each and every question of Cracking the Coding Interview by Gayle Laakmann McDowell.
Started on 4th Jan, 14
####Arrays
1.2. Implement a function void reverse(char* str) in C or C++ which reverses a null-terminated string.
1.3. Given two string, write a method to decide if one id the permutation of the other.
1.4. Write a method to replace all the spaces in a string with %20.
####LinkedList 2.1. Remove duplicates from an unsorted linked list.
2.2. Implement an algorithm to find the kth to the last element of a singly linked list.
####Misc
Linked List practice questions.
####List of interview questions that I plan to do in future:
Linked List:
Given a linked list like a1-a2-a3-a4-b1-b2-b3-b4. Convert it into a1-b1-a2-b2-a3-b3-a4-b4.
Trees and Graph: Program to convert a binary search tree into doubly linked list.
Dynamic Programming:
Given a MXN matrix. To find the number of ways to reach the mth row and nth column cell from 0,0 cell. Find the same if some of the cells are marked as not reachable. First implemented using recursion then through dynamic programming.
Misc:
Given a sentence. Find all the characters which are repeated more than 1 time and print them in lexicographical order.
Program to sort m sorted arrays.
Given two sorted arrays. Find the median of the combined array.