Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ main
Function
main
1470-shuffle-the-array.rs:11–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
// 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
10
11
fn main() {
12
let nums = vec!(2,5,1,3,4,7);
13
let res = shuffle(nums, 3);
14
println!(
"{:?}"
, res);
15
}
16
17
pub fn shuffle(nums: Vec<i32>, n: i32) -> Vec<i32> {
18
let mut res = vec!();
Callers
nothing calls this directly
Calls
1
shuffle
Function · 0.85
Tested by
no test coverage detected