summaryrefslogtreecommitdiff
path: root/a-number-after-a-double-reversal/src/main.rs
blob: 7e7c9d1652747f39dfcdbd7fb3c75f3a6d5df09d (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    println!("Hello, world!");
}

struct Solution;

impl Solution {
    pub fn is_same_after_reversals(num: i32) -> bool {
        num == 0 || num % 10 != 0
    }
}