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