anonymous
BAN USER
Questions (3)
Comments (1)
Reputation 245
- 3of 3 votes
AnswersThere is rotated sorted array.Write the program to find any element in that array
- akash.patel06@sjsu.edu in United States
Original Array A={1,2,3,5,6,7,8}
Rotated Array B={5,6,7,8,1,2,3}
Write the program to find any element in array B| Report Duplicate | Flag | PURGE
Linkedin Software Engineer / Developer Algorithm - -1of 3 votes
AnswersImplement DFS for binary tree
- anonymous in United States| Report Duplicate | Flag | PURGE
Linkedin Software Engineer / Developer Algorithm - 1of 1 vote
AnswersThere are 2 sorted sets.Find the common elements of those sets
- anonymous in United States
e.g.
A={1,2,3,4,5,6}
B={5,6,7,8,9}
o/p C={5,6}
Complexity should ne 0(n+m) where n and m is the size of the first and second set respectively
Which data structure should be used to store the output| Report Duplicate | Flag | PURGE
Linkedin Software Engineer / Developer Algorithm Data Structures
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
There is no need to use HashMap as we are not storing key -value pairs here.
- anonymous February 22, 2013ArrayList is better option