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

Function main

677-map-sum-pairs.rs:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39fn main() {
40 let mut obj = MapSum::new();
41 obj.insert("apple".to_string(), 2);
42 println!("{:?}", obj.sum("ap".to_string()));
43 obj.insert("app".to_string(), 3);
44 obj.insert("apple".to_string(), 3);
45 println!("{:?}", obj.sum("ap".to_string()));
46}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected