โ† Cisco questions
CodingReported in a candidate post, Aug 2021

Find leader numbers in an array in O(n) time

Filed under Cisco

An element is a leader if it is greater than all the elements to its right side. The rightmost element is always a leader. Find all leaders in an array in O(N) 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 Cisco questions

Collected from public candidate posts and coding forums. Updated Nov 2026.