Amazon Interview Question

Question 1 / 4 (Repeat characters in a string) You are given a function findRepeatCharacters which takes in a string s. Complete the function to print the repeating characters in a string in lexicographical order. (one-per-line) Question 2 / 4 (Rotate an array) Write a progam to rotate a matrix by 90 degrees clockwise. You should write complete code (including headers). Read the input from standard input (STDIN) and print the output to standard output (STDOUT). Question 3 / 4 (Nth largest node in a BST) Given a binary search tree (BST), return the Nth largest node. The function nLargeBST takes the root of the BST and N as parameters Question 4 / 4 (Binary Search Tree to Sorted Doubly Linked List) Write a program to convert binary search tree in to sorted doubly linked list, Inplace. Given pointer to head of binary tree

Interview Answer

Anonymous

Jun 12, 2013

Are they able to see our desktop when telephonic round is happening? is it comfortable for us?