Sunday, September 14, 2014

Applied Material Interview Questions

1. Create a Pyramid to print in below order:
                              A
                           BCD
                         EFGHI
                       JKLMNOP
                   QRSTUVWXYZ


Solution:     http://ideone.com/ro9L39

2. Write a program to find square root of a number upto 2 decimal places.

Solution:    http://ideone.com/0g0Se1

3. Write a function to find second largest element in an array in O(n) time.

Solution:    http://ideone.com/RjN5Kj

4. Convert a Binary Tree to Singly Linked list in place using inorder traversal.

Solution:   http://ideone.com/79Gdye

No comments:

Post a Comment