HTMLify

Q258_Add_Digits.rs
Views: 169 | Author: djdj
impl Solution {
    pub fn add_digits(num: i32) -> i32 {
        if(num==0){
            return 0;
        }
        return (num-1)%9+1;
    }
}

Comments