โ† Amazon questions

Kth element from end of linked list and island problem

Filed under Amazon

Find the Kth element from the end of a singly linked list in a single traversal, and find the number of connected components of 1s in a 2D matrix (number of islands).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.