LeetCode Entry

877. Stone Game

02.08.2026 medium 2026 kotlin rust

Even count pick game

877. Stone Game medium substack youtube

https://dmitrysamoylenko.com/leetcode/

02.08.2026.webp

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