Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Enabled Ruby 3.0 & KaTeX used in this fork
You know what else is free too? --> Authoring katas on CW in any spoken language of your choice (The rules prohibit this but not the system ^^)
The whole design of this kata is flawed. Mixing different data type for expected output is a bad practice, let alone needing to explicitly handle the case when only 1 combination is found!
As of 21/1/2025, there are a total of 323 submissions, so revamp of tests to expect only an array of arrays / a list of lists can still be done with minimal tradeoff with all solutions being invalidated ! (This also adds the compatibility of the kata to be translated across strongly typed languages)
Why not just return
[]
for this case? Since an empty array literally represents nothing to process in the first place !!!Why not just return
[[]]
for this case ? Since an array consistng of only an empty array represents after processing the array, no combination was foundDescription does not mention we need to just return the first combination, not the entire array. Though the first example implies this, it is no where stated clearly in written words...
OTOH, the explicit handling of 1 combination mentioned above increases the number of data types for the expected output -> an array. So, such requirement should not be there in the first place !
Enabled in this fork
Good feeling seeing my solution as the top solution lol
It simply means to find the unique combination with a size of
m
wherebym
is the lowest frequency of an element in the array of digits.Good exercise!
The random tests in Python have several issues:
2
instead of10
per the description.$[a,b]$
, which is not a guaranteed property of the generated matrices.memo rulezz!
Enabled in this fork
Enabled in this fork
kata was retired
Kata retired.
I think so too
Approved!
Loading more items...