Find the missing permutation: Difference between revisions

Content added Content deleted
m (→‎{{header|Sidef}}: modified code to work with Sidef 2.10)
Line 1,807:
{{trans|Perl}}
<lang ruby>func check_perm(arr) {
(var hash = Hash.new)[.@{arr]} = @[1]*arr.len;
arr.each { |s|
s.len.times {
Line 1,813:
hash.has_key(t) || return t;
}
};
}