Skip to content

Commit 023894f

Browse files
authored
Update minimum-number-of-operations-to-make-array-continuous.cpp
1 parent 16a156f commit 023894f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/minimum-number-of-operations-to-make-array-continuous.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Time: O(nlogn)
2-
// Space: O(n)
2+
// Space: O(1)
33

44
class Solution {
55
public:
@@ -18,7 +18,7 @@ class Solution {
1818
};
1919

2020
// Time: O(nlogn)
21-
// Space: O(n)
21+
// Space: O(1)
2222
class Solution2 {
2323
public:
2424
int minOperations(vector<int>& nums) {

0 commit comments

Comments
 (0)