Skip to main content

perm

Function perm 

Source
pub fn perm(n: u64, s: &str) -> String
Expand description

Return the nth (0-based) permutation of the input string. Example: perm(3, “abc”) -> “bac”.