Amazon.com Interview Question
1,567 Interview Reviews |
Back to all Amazon.com Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Senior Software Engineer at Amazon.com:
- Find k-th element from the end of the singlylinked list in single pass?
See more for this Amazon.com Senior Software Engineer Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (3)
1 of 1 people found this helpful
At each step keep advancing both front and back by 1 node.
When front pointer reaches end of link list, back pointer is at the last k'th node.
Helpful Answer?
Yes |
No
Inappropriate?
Find kth-order(greatest) element from the unsorted array or list without sorting the whole list?
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up



0 of 2 people found this helpful
by Interview Candidate: