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

Function main

1720-decode-xored-array.rs:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9// 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
10
11fn main() {
12 println!("{:?}", decode(vec!(1,2,3), 1));
13}
14
15pub fn decode(encoded: Vec<i32>, first: i32) -> Vec<i32> {
16 let mut res = vec!(first);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected