1impl Solution {2 pub fn length_of_last_word(s: String) -> i32 {3 s.trim_end()4 .chars()5 .rev()6 .take_while(|c| c.is_alphabetic())7 .count() as i328 }9}
WPM •0 •0
ACC •0 •0
TIME •0