← Amazon questions

Sum of Consecutive Numbers

Filed under Amazon · Also reported at Lovebird Lingerie

Check if a given positive integer can be expressed as a sum of two or more consecutive positive numbers, with an O(n^0.5) approach.

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.