1impl Solution {2 pub fn thousand_separator(n: i32) -> String {3 n.to_string()4 .chars()5 .collect::<Vec<_>>()6 .rchunks(3)7 .rev()8 .map(|v| v.iter().collect::<String>())9 .collect::<Vec<_>>()10 .join(".")11 }12}
WPM •0 •0
ACC •0 •0
TIME •0