โ† Amazon questions

Get nth to last element and compare binary trees

Filed under Amazon

Given a singly linked list, find the nth-to-last element, and write functions to check if two binary trees are identical both recursively and iteratively.

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.