Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ reset
Method
reset
384-shuffle-an-array.rs:9–11 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
7
Self { nums }
8
}
9
fn reset(&self) -> Vec<i32> {
10
self.nums.clone()
11
}
12
fn shuffle(&self) -> Vec<i32> {
13
let mut nums = self.nums.clone();
14
let mut n = nums.len() as u128;
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected