Ad
Code
Diff
  • fn solution(mut x: i32) -> bool {
        x.to_string().contains('3')
    }
    • fn solution(mut x: i32) -> bool {
    • match x.to_string().chars().into_iter().position(|s| s == '3') {
    • Some(_t) => true,
    • _e => false,
    • }
    • x.to_string().contains('3')
    • }