Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ new
Method
new
384-shuffle-an-array.rs:6–8 ·
view source on GitHub ↗
(nums: Vec<i32>)
Source
from the content-addressed store, hash-verified
4
}
5
impl Solution {
6
fn new(nums: Vec<i32>) -> Self {
7
Self { nums }
8
}
9
fn reset(&self) -> Vec<i32> {
10
self.nums.clone()
11
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected