← Expedia questions

Staircase coin arrangement maximum rows

Filed under Expedia

You have n coins and you want to build a staircase with these coins. The staircase consists of k rows where the ith row has exactly i coins. Given the total number of coins n, find the maximum number…

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 Expedia questions

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