in reply to PWC 244 task 2 in linear time
My problem with this challenge definition is that a sequence is an ordered set, much like Perl arrays.
But it seems to me the solutions presented are based on unordered subsets.
For clarification:
[2,3,4,5] may be a subset of [0 ..10] and there is only one subset of length 4 possible with 2 minimal and 5 maximal.
But 2 sequences for length 4 °
Thanks for clarification.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
PS: Mohammed's example doesn't help because you need longer arrays to see the difference.
°) And generally n! for length n+2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PWC 244 task 2 in linear time
by jo37 (Curate) on Nov 28, 2023 at 21:06 UTC | |
by LanX (Saint) on Nov 28, 2023 at 21:18 UTC |