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.
SQL Translation
10000000000000000000
is greater than1e18
.I haven't thought about it too much but seems that answer domain is very small and random tests suffer much more because of that, to the point where they are useless on most attempts
https://www.codewars.com/kata/reviews/57879750d9456ea805000240/groups/5ed75dc27443a90001feed3d
Right.Follow the author wanted,add
x >= 0
andy >= 0
description.This kata assumes that only non-negative solution pairs are allowed (
x^2 + y^3 = 9
expected 2 solutions), but the domain of solutions of Diophantine equations is all integers, not just non-negative ones. Hencex^2 + y^3 = 9
has 4 solutions :(3,0)
,(-3,0)
,(1,2)
,(-1,2)
. Even the description saysinteger
and notnon-negative integer
.Approved~~Add better random test
This comment is hidden because it contains spoiler information about the solution
Hello, it is a good idea. I never thought that someone wants to cheat katas, I thought that this project(codewars) for improvement own skills :)
This comment is hidden because it contains spoiler information about the solution