← Amazon questions
CodingReported in a candidate post, Aug 2022

Longest non-increasing segment in a Linked List

Filed under Amazon

Given a singly linked list, find the longest non-increasing segment (where each node's value is greater than or equal to the next node's value) and return the starting node of this segment as a linked…

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.