Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Rust
/ assert_valid_permutation
Function
assert_valid_permutation
src/general/permutations/mod.rs:26–42 ·
view source on GitHub ↗
(original: &[i32], permuted: &[i32])
Source
from the content-addressed store, hash-verified
source not stored for this graph (policy: none)
Callers
12
assert_permutations
Function · 0.85
test_valid_permutations
Function · 0.85
test_invalid_permutation_1
Function · 0.85
test_invalid_permutation_2
Function · 0.85
test_invalid_permutation_3
Function · 0.85
test_invalid_permutation_repeat
Function · 0.85
test_3_different_values
Function · 0.85
test_3_times_the_same_value
Function · 0.85
test_3_different_values
Function · 0.85
test_3_times_the_same_value
Function · 0.85
test_3_different_values
Function · 0.85
test_3_times_the_same_value
Function · 0.85
Calls
2
len
Method · 0.45
remove
Method · 0.45
Tested by
11
test_valid_permutations
Function · 0.68
test_invalid_permutation_1
Function · 0.68
test_invalid_permutation_2
Function · 0.68
test_invalid_permutation_3
Function · 0.68
test_invalid_permutation_repeat
Function · 0.68
test_3_different_values
Function · 0.68
test_3_times_the_same_value
Function · 0.68
test_3_different_values
Function · 0.68
test_3_times_the_same_value
Function · 0.68
test_3_different_values
Function · 0.68
test_3_times_the_same_value
Function · 0.68