Skip to content

Commit 69ce5bf

Browse files
authored
Create alice-and-bob-playing-flower-game.py
1 parent 314df20 commit 69ce5bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Time: O(1)
2+
# Space: O(1)
3+
4+
# combinatorics
5+
class Solution(object):
6+
def flowerGame(self, n, m):
7+
"""
8+
:type n: int
9+
:type m: int
10+
:rtype: int
11+
"""
12+
return (n*m)//2

0 commit comments

Comments
 (0)