MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / main

Function main

Two Pointers/457. Circular Array Loop/src/main.rs:1–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1fn main() {
2 assert_eq!(Solution::circular_array_loop(vec![2,-1,1,2,2]), true);
3 let j = 0usize.wrapping_add(-2i32 as usize) % 5;
4 println!("j = {:#?}", j);
5 let j = 4usize.wrapping_add(1i32 as usize) % 5;
6 println!("j = {:#?}", j);
7 println!("var = {:#?}", -1i32 as usize);
8 let x = (-1i32 as usize) % 5;
9 println!("x = {:#?}", x);
10}
11
12struct Solution {}
13

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected