Arranging Coins – Leetcode #441
Problem Statement This problem is from Leetcode – Arranging Coins. The problem statement in short is as below: Given n coins, return the number of complete rows in a staircase where the ith row has i coins. Solution This problem is easy enough. In awhile loop simply keep subtracting the row count from coins left.…