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.
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 !
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.in cpp version code works fine locally on my visual studio and gives the right output while when i do test or attempt it gives wrong output on the site
Example Error:
Expected: equal to (1, 999, 999)
Actual: (1, 118, 999)
While it gives (1, 999, 999) on my visual studio
all error like this on the site when i tried it on my visual studio it gives the EXPECTED CORRECTLY!
This comment is hidden because it contains spoiler information about the solution
(Haskell, maybe others)
Fixed test cases allow for solutions that do not properly check for square matrices such as this solution.
I've made a Haskell fork that adds the following test cases:
This comment is hidden because it contains spoiler information about the solution
What is going on?
Time: 2708ms Passed: 0Failed: 4Exit Code: 1
Test Results:
Fixed_Tests
Basic_Tests
Expected: equal to [8.6667, 6.6667]
Actual: [8.6667, 6.6667]
Random_Tests
Moderate_Values
Expected: equal to [33, 37.3333]
Actual: [33, 37.3333]
High_Values
Expected: equal to [642.333, 895.667]
Actual: [642.333, 895.667]
Huge_Values
Expected: equal to [4697.33, 6422]
Actual: [4697.33, 6422]
What is a partition? Define partition..
Examples assumed that partition is something the user should be aware of?
https://en.wikipedia.org/wiki/Pascal%27s_triangle
The sum of the elements of row 2 ** n.
The solution is 2 ** n -1.
From a mathematical point of view, why -1?
I think the sentence in the description should read:
Prepare a code that given the number of digits n, may output the amount of palindromes of length equals to n and the total amount of palindromes below or equal to 10n.
This comment is hidden because it contains spoiler information about the solution
python new test frameworks
Description markdown is broken when Java is selected.
In the description, under "Examples", the brackets in
proc_arrInt(arr1) ------> [21, 2, [9, [36]]
are mismatched (3 opening, 2 closing).the tests depend on
OrderedDict
beingimport
ed by the user at the top levelshould be:
Loading more items...