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 literally made sure, that it does check for multiple values in a really efficient manner, then realized it's only for 2 values in total.
Wish I realized earlier...
Really good Kata, had fun solving it :)
This comment is hidden because it contains spoiler information about the solution
So it should've been immediately be downvoted by everyone, but somehow I was the only one. It must have random test cases when you publish it (with very few exceptions). That's the current acceptable standart of publishing katas.
Genuinely, how did it even survive to this point at all? It's good that non-solutions don't work anymore, but having 2 or 3 fixed tests in total is just embarrasing. There should be test cases for edge cases, considerations for performance requirements, etc. But there's none of that. Not to mention that this kata is very likely a duplicate (I remember at least 2/3 solved katas using the same approach).
If the kata wasn't ready, you could've easily just put it back to draft, and published it once it's ready, but you just left lying around completely broken... Hence the rating, and retirement.
Retired due to low satisfaction rating.
Shouldn't be the case anymore, doesn't have random test cases atm, but later will.
At least a simple 'return 0' won't do the job anymore.
The kata is sitting for 3 days with no tests at all, and yet it somehow has positive rating (including my downvote)?! What the fuck?
Perhaps the portion of the Documentation on Random Tests can help you.
Can't edit top post now, the structure guidelines are here: https://docs.codewars.com/authoring/guidelines/description#structure
noItemsJustMoreTimesDeclared
andsomeNoValuesAsWellAsSomeHaveValuesAssigned
are expecting incorrect resultsSome possible improvements
More comments in spoilered comment below:
Why don't you unpublish this kata in the meantime?
Coding style and practices:
items
should be passed as aconst
reference to the user solution,EqualsWithDelta
matcher, there is no need to calculate the tolerance by yourself.vector
of a fixed size of 3? What's wrong with making them a dedicated structure, or at least a 3-tuple?Still :
./tests.cpp:4:18: error: no matching function for call to 'amount'
Will look into that, was super confused, when I saw your solution.
This comment is hidden because it contains spoiler information about the solution
Loading more items...