← Amazon questions

Find top 5 frequent words and reverse linked list in k blocks

Filed under Amazon

Given a large text string, find the 5 most frequent words. Additionally, given the head of a linked list and an integer k, reverse the nodes of the list in blocks of size k at a time.

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.