Tuesday 27 November 2012

Amazon Paper 2012



Some asked questions

1. Write a program to traverse the tree in spiral form in O(n) time.(Hint:use two stacks)

2. Program to implement atoi function

3. Program to swap the k th node from end and kth node from front 

4. Program to find loops in linked list

5. Find the maximum length palindrome in a string 

6. Difference between process and thread

7. Advantages and disadvantages of thread and process

8. Test cases for checking binary tree

9. Test case for atoi function

10. Test cases for finding loops in the single linked list.

No comments:

Post a Comment