LeetCode Entry
877. Stone Game
Even count pick game
877. Stone Game medium substack youtube
https://dmitrysamoylenko.com/leetcode/

Join me on Telegram
https://t.me/leetcode_daily_unstoppable/1439
Problem TLDR
Even count pick game
Intuition
Alice can enforce all choices of Bob to be all evens or all odds.
Approach
- just know the trick
Complexity
-
Time complexity: \(O(1)\)
-
Space complexity: \(O(1)\)
Code
fun stoneGame(p: IntArray) = 1>0
pub fn stone_game(p: Vec<i32>)->bool{1>0}
Comments