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

Function main

347-top-k-frequent-elements.rs:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13fn main() {
14 let nums = vec![1, 1, 1, 2, 2, 3];
15 let k = 2;
16 println!("{:?}", top_k_frequent(nums, k));
17 println!("{:?}", top_k_frequent(vec![4,1,-1,2,-1,2,3], 2));
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected