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.
Okay, in fact after looking at the author solution it's an understatement to say that it's completely wrong. What it (and the description) shows is kata author lacks the basic understanding of fundamental algebra and equation solving.
Please study some basic mathematics and understand what the you've linked to is actually about. Cubic polynomials aren't solved this way, and it's not relevant to the task at hand.
The reference solution is wrong too; the cubic equation
18x^3-50x^2+14x+28=0
has 3 roots:-0.57
,1.35
and2
.Also, why is every test expecting integers besides one specific fixed test?
This fixed test is wrong since
7**(1/3)
is a root. In fact,None
is impossible since every cubic polynomial must have at least 1 real root.This comment is hidden because it contains spoiler information about the solution