Login
From:
E. Choroba
(Uncensored)
subscribe
Perl Weekly Challenge 054: Kth Permutation Sequence + Collatz Conjecture
https://blogs.perl.org/users/e_choroba/2020/04/perl-weekly-challenge-054-kth-permutation-sequence-collatz-conjecture.html
links
backlinks
Tagged with:
recursion
challenge
perlweeklychallenge
collatz
permutation
perl-weekly-challenge
Kth Permutation Sequence Write a script to accept two integers n (>=1) and k (>=1). It should print the k-th permutation of n integers. For example, n=3 and k=4, the possible permutation sequences are listed below: 123 132 213...
Roast topics
Find topics
Find it!