Easy
You have n coins and want to build a staircase where row i holds exactly i coins. The last row may be incomplete. Return the number of complete rows you can build.
n
i
Input: n = 5 Output: 2
Input: n = 8 Output: 3
Input: n = 1 Output: 1