1impl Solution {2 pub fn is_subsequence(s: String, t: String) -> bool {3 let mut iter = t.chars();4 for c in s.chars() {5 match iter.find(|&p| p == c) {6 Some(_) => (),7 None => return false,8 }9 }10 true11 }12}
WPM •0 •0
ACC •0 •0
TIME •0