Is there an issue with the performance of the reference solution?
It keeps timing out, even the 3 sample tests require at least 3-4 seconds.
I'm pretty sure my solution is optimized, but I'm not an expert in C++.
It is very interesting Kata!! I usually don't care copy by value, copy by ref etc... But in this kata I realized that using copy by ref is very useful!!!
Thanks~
Same as mine! Nice job!
Is there an issue with the performance of the reference solution?
It keeps timing out, even the 3 sample tests require at least 3-4 seconds.
I'm pretty sure my solution is optimized, but I'm not an expert in C++.
(python) Image is broken.
In Haskell function returns Maybe Int, but test case expects Int. Types don't match. Change test cases so types match.
thanks for the reply! i will check that out
Have you ever implemented the sieve of Eratosthenes? If you have, can you imagine using a similar method to calculate sod?
That should be non-spoilerly enough and get you on the right track.
why tf didn't I think of it this way;
hello, my function sod(i) has a O(sqrt(i)) and my csod(n) function has a O(n) and i get timeout, can someone give a tip?
:O :O
amazing solution
It looks like:
Task: Return random number
Solution:
int random() {return 4; /* choosen by fair dice roll */}
It just means he needs more tests ;)
It is very interesting Kata!! I usually don't care copy by value, copy by ref etc... But in this kata I realized that using copy by ref is very useful!!!
Thanks~
Python translation:
https://www.codewars.com/kumite/5fd543766efa9f00188ef0bc?sel=5fd543766efa9f00188ef0bc
Loading more items...