leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

0441.cpp (103B)


0 class Solution { 1 public: 2 int arrangeCoins(int n) const { return (sqrt(8l * n + 1) - 1) / 2; } 3 };