Skip to content

Commit 251564e

Browse files
refaactor 441
1 parent 7401afe commit 251564e

File tree

1 file changed

+0
-32
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-32
lines changed

src/main/java/com/fishercoder/solutions/_441.java

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 441. Arranging Coins
5-
*
6-
* You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.
7-
8-
Given n, find the total number of full staircase rows that can be formed.
9-
10-
n is a non-negative integer and fits within the range of a 32-bit signed integer.
11-
12-
Example 1:
13-
14-
n = 5
15-
16-
The coins can form the following rows:
17-
¤
18-
¤ ¤
19-
¤ ¤
20-
21-
Because the 3rd row is incomplete, we return 2.
22-
23-
24-
Example 2:
25-
26-
n = 8
27-
28-
The coins can form the following rows:
29-
¤
30-
¤ ¤
31-
¤ ¤ ¤
32-
¤ ¤
33-
34-
Because the 4th row is incomplete, we return 3.*/
353
public class _441 {
364

375
public static class Solution1 {

0 commit comments

Comments
 (0)