← Amazon questions
CodingReported in a candidate post, Sep 2021

Traversing an array from back to front and vice versa

Filed under Amazon

Write a function to traverse an array from index 0 to n-1 and then from n-1 to 0.

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.