We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d28f47 commit e772068Copy full SHA for e772068
src/ArrangingCoins.java
@@ -0,0 +1,5 @@
1
+public class ArrangingCoins {
2
+ public int arrangeCoins(int n) {
3
+ return (int) Math.floor((Math.sqrt(8 * n + 1) - 1) / 2);
4
+ }
5
+}
0 commit comments