Skip to content

Commit

Permalink
Update min-max-game.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Jun 8, 2022
1 parent fa06712 commit fac2683
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions C++/min-max-game.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Time: O(nlogn)
// Time: O(n)
// Space: O(n)

// merge sort, optimized from solution2
// simulation, optimized from solution2
class Solution {
public:
int minMaxGame(vector<int>& nums) {
Expand All @@ -14,9 +14,9 @@ class Solution {
}
};

// Time: O(nlogn)
// Time: O(n)
// Space: O(n)
// merge sort
// simulation
class Solution2 {
public:
int minMaxGame(vector<int>& nums) {
Expand Down

0 comments on commit fac2683

Please sign in to comment.