← Amazon questions

Number placement and Top k visitors

Filed under Amazon

Part 1: Given a number n, construct an array with two instances of every number from 1 to n such that the two instances of number i are separated by exactly i numbers. Part 2: Find the k most visited…

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.