I would consider any kata where the solution is some particular order-n polynomial in the input to be a duplicate of all the other kata where the solution is some particular order-n polynomial in the input, especially if all coefficients turn out to be integers but for a factor of order! or 1<<order or something ( which will happen often if integer datapoints are given ).
Don't reason from the problem, reason from the solution.
Also, "different enough" is subjective, so people who have solved ( way ) more kata than you may reasonably have a different opinion on that. ( Or they could be entirely wrong and have only learned negative amounts of knowledge from their last several thousand kata. Half kidding. )
What? How u read this?
Great kata. Had to think about this one for a while. Probably should be a 6 kyu though.
Beautiful solution!
I guess, this kata is harder than some 5-6 kuy katas.
But i did it, finally....
can someone explain how this works?
It's so cool! I love it.
The sorting part of my first solution is a ugly hack but it still passes most of the time :
https://www.codewars.com/kata/reviews/617af30f6e47f30001186417/groups/62ed7e18fd3e760001ede112
This is a 6 kyu problem: all you need to know is how to iterate on a list, some branching and how to use a
dict
Added
Looks cool :)
I would consider any kata where the solution is some particular order-
n
polynomial in the input to be a duplicate of all the other kata where the solution is some particular order-n
polynomial in the input, especially if all coefficients turn out to be integers but for a factor oforder!
or1<<order
or something ( which will happen often if integer datapoints are given ).Don't reason from the problem, reason from the solution.
Also, "different enough" is subjective, so people who have solved ( way ) more kata than you may reasonably have a different opinion on that. ( Or they could be entirely wrong and have only learned negative amounts of knowledge from their last several thousand kata. Half kidding. )
There was a one wrong test, I wrote
12
instead of13
. I've just gone and fixed itbless you
.
Loading more items...