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.
I respectfully disagree that this makes the Kata worthless and unsalvageable. What's wrong with authoring a Kata which strikes some "middle ground" between your typical beginner Fibonacci Kata and some ultimate generalized version of a Fibonacci Kata understood mostly by math majors and postgraduates?
By this logic I can author a Kata on the "theory of theories" in mathematics and that would make pretty much every other existing mathematics Kata on this site a duplicate ;-)
Thanks for your suggestion. I understand that the concepts in this Kata may be a subset of an existing
3 kyu
Kata (which one?), but I disagree that this makes the Kata in its current form meaningless and devoid of value for the Codewars community. At the very least, considering that this Kata is not (yet?) shown to be an exact duplicate of some other existing Kata, it could serve as a stepping stone between GiacomoSorbi's Kata and the3 kyu
Kata you mentioned.As your comment is worded as a suggestion and the Kata does not clearly violate existing Kata authoring guidelines, I would kindly ask for the issue to be resolved and re-raised as a suggestion, thanks!
P.S. check out this reply as well
Gah, fixed! ;-)
This comment is hidden because it contains spoiler information about the solution
Good point, I've added a relevant example in the Kata description and sample tests and mentioned that the digit should be returned "as an integer".
This comment is hidden because it contains spoiler information about the solution
I've bumped the number of random assertions up to 100 per category (small, larger, largest), feel free to inform me if more assertions are required :-)
Whoops, fixed! ;-)
This comment is hidden because it contains spoiler information about the solution
I was able to pass the Attempt test suite in Rust without any issues. Please post your current solution, mark it as a spoiler and specify the input(s) causing your solution to fail so we may reproduce your issue and determine whether it is indeed a problem with the tests.
Closing the issue since there's insufficient evidence it's related to the Kata itself.
This comment is hidden because it contains spoiler information about the solution
Many issues with this Kata:
Description is vague and difficult to understand
Example:
It's entirely unclear how these "values of elements" are derived from the input tuple alone. One could extrapolate and guess that the values of each element should be determined as increasing powers of 2 based on the index within the input tuple, but it's not explicitly specified which is not acceptable.
Poor choice of data structures
Tuples are good for data where the number of elements are pre-determined and fixed. They are not for data where the number of elements are variable and cannot be pre-determined - use a list instead.
Broken tie-breaking logic in reference solution
Python's built-in sorting functions are stable by default so input order should already be preserved - see my solution below for an example.
On the other hand, the reference solution does not always preserve input order - it's difficult to present a concrete example given the way the inputs are structured for this Kata but it's possible to confirm this by printing a transformed view of the inputs and comparing the output of my solution from that of the reference solution.
Please refer to Creating your first Kata for guidelines on authoring a good Kata.
Finally managed to solve this one in Rust, excellent Kata :-D
I definitely over-engineered my solution though, defining
DeltaIterator
as a recursive type withBox
es and'static
lifetime annotations - not my proudest solve (-:Please resolve the following issues with the Kata before re-publishing:
Also, please refrain from "re-publishing" a retired Kata as-is in the future as that may result in the revocation of your Kata-authoring privileges.
[Rust] Random tests sometimes generate an empty vector
vec![]
which doesn't match the Kata description saying that an empty matrix is represented byvec![vec![]]
Loading more items...