Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 281 Bytes

441.md

File metadata and controls

23 lines (14 loc) · 281 Bytes

441 Arranging Coins

Description

link


Solution

  • See Code

Code

class Solution:
    def arrangeCoins(self, n: int) -> int:
        return int((math.sqrt(8 * n + 1)-1)/2)