Skip to content

Commit fa06712

Browse files
authored
Update min-max-game.py
1 parent 921ee4e commit fa06712

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/min-max-game.py

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(1)
33

4-
# merge sort, optimized from solution2
4+
# simulation, optimized from solution2
55
class Solution(object):
66
def minMaxGame(self, nums):
77
"""
@@ -17,9 +17,9 @@ def minMaxGame(self, nums):
1717
return nums[0]
1818

1919

20-
# Time: O(nlogn)
20+
# Time: O(n)
2121
# Space: O(n)
22-
# merge sort
22+
# simulation
2323
class Solution2(object):
2424
def minMaxGame(self, nums):
2525
"""

0 commit comments

Comments
 (0)