Quick Overview

Check strict high-low alternation around a circular array, including equal neighbors, wraparound comparisons, and the two-element case.

Check Alternating Highs and Lows Around a Circular Array

Company: Capital One

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Online Assessment

Overview: Check strict high-low alternation around a circular array, including equal neighbors, wraparound comparisons, and the two-element case.

Read the full Capital One Software Engineer interview experience this question came from

Loading…