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

Function main

1844-replace-all-digits-with-characters.rs:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12// 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
13
14fn main() {
15 let s = "a1c1e1".to_string();
16 println!("{:?}", replace_digits(s));
17}
18
19pub fn replace_digits(s: String) -> String {
20 let chars = s.chars().clone();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected