kevinspirit7
BAN USER
Questions (3)
Comments (2)
Reputation 10
- 0of 0 votes
AnswersGiven two numbers, print all prime number between two given numbers.
- kevinspirit7 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Is the question clarify the two arrays are continuous block of original arrays? If not, your code seems wrong.
For Example, if we have a array {1,2,5,4,3,6,8,7};
The minimum difference is achieved by {1,2,7,8} & {3,4,5,6}.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
BSTToLinkedList is possible by Morris traversal.
- kevinspirit7 February 27, 2013LinkedListToBST is not possible because the LinkedList is regarded as a inorder traversal sequence, we may need another postorder or preorder sequence to reconstruct a BST. With only inorder sequence, there must be more than one BST can be built.