面试题答案
一键面试fn split_string(s: &str) -> Vec<String> {
s.split_whitespace()
.filter(|word|!word.is_empty())
.map(|word| word.to_string())
.collect()
}
fn split_string(s: &str) -> Vec<String> {
s.split_whitespace()
.filter(|word|!word.is_empty())
.map(|word| word.to_string())
.collect()
}