MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / main

Function main

1859-sorting-the-sentence.rs:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9// 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
10
11fn main() {
12 println!("{:?}", sort_sentence("is2 sentence4 This1 a3".to_string()));
13}
14
15pub fn sort_sentence(s: String) -> String {
16 let mut arr = s.split(' ').collect::<Vec<&str>>();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected