Skip to content

Commit fac2683

Browse files
authored
Update min-max-game.cpp
1 parent fa06712 commit fac2683

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

C++/min-max-game.cpp

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

4-
// merge sort, optimized from solution2
4+
// simulation, optimized from solution2
55
class Solution {
66
public:
77
int minMaxGame(vector<int>& nums) {
@@ -14,9 +14,9 @@ class Solution {
1414
}
1515
};
1616

17-
// Time: O(nlogn)
17+
// Time: O(n)
1818
// Space: O(n)
19-
// merge sort
19+
// simulation
2020
class Solution2 {
2121
public:
2222
int minMaxGame(vector<int>& nums) {

0 commit comments

Comments
 (0)