← Amazon questions

Search in absolute difference 1 array, palindrome linked list, and mutual friends

Filed under Amazon

Search for an element in an array where adjacent elements have an absolute difference of 1 and return its first occurrence position. Check if a linked list is a palindrome. Find all mutual 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.