Skip to content

Commit 19882ea

Browse files
authored
Update 0441-arranging-coins.js
Adding Space complexity to binary-search solution.
1 parent 6a4623d commit 19882ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

javascript/0441-arranging-coins.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ var arrangeCoins = function(n) {
2121

2222
/**
2323
* Binary Search
24-
*
25-
* Time O(n*log(n)) | Space O
24+
* Time O(n*log(n)) | Space O(1)
2625
* @param {number} n
2726
* @return {number}
2827
*/

0 commit comments

Comments
 (0)