(s: &str)
| 1 | pub fn longest_nice_substring(s: String) -> String { |
| 2 | fn is_nice(s: &str) -> bool { |
| 3 | let mut a = s.to_string().chars().collect::<Vec<char>>(); |
| 4 | a.sort_unstable(); |
| 5 | a.dedup(); |
| 6 | println!("{:?}", a); |
| 7 | true |
| 8 | } |
| 9 | for i in 0..s.len()-1 { |
| 10 | for j in i+1..s.len() { |
| 11 | let a = &s[i..j]; |
no outgoing calls
no test coverage detected