Tower Breakers

  • + 0 comments

    My rust solution:

    fn towerBreakers(n: i32, m: i32) -> i32 {
        if m == 1 || n % 2 == 0 { 
            2 
        } else { 
            1 
        }
    }