← Amazon questions

Print generic tree reverse order and top 1000 movies

Filed under Amazon

1) Print a generic tree (N-ary tree) in reverse bottom-up order. 2) In a social network graph where nodes have 'watched movie' lists, find the top 1000 most-watched movies among a user's friends and…

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.