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.
This would've never ocurred to me! I didn't know there was an absolute value function XD.
Rustam, bro, I agree. There is no limit to perfection.
return не нужен ))
Thank you for your prompt reply. I reduced the number of operations in my algorithm even further, but the result is the same: the program fails the laziness tests. Ok, I'll think about it further. Good luck!
It is not a bug in random tests, but your bad luck is that tests for some languages (including Swift, and Haskell IIRC, possibly some others) have test cases for very long sequences. You need to find a way to deal with sequences of billions of numbers.
There is an open issue about the task being inconsistent between languages, but it hasnt been fixed yet. It;s also not decided if a fix would be to make all languages easier, or all languages more difficult :) So basically you need to find a way to deal with sequences of many, many, many, many numbers.
Hi! Interesting task. My swift solution passes all the tests, but the result is "Execution Timed Out. I'm racking my brain on how to improve the algorithm. It has only one loop, secondly all the numbers are significantly reduced. Surely this is not a bug in the random tests? Thanks!
Hi, I have the same problem, can't pass tests in swift:
main.swift:86:18: error: type of expression is ambiguous without more context let p1 = Projectile(h: a, v0: b, a: c);
Please give me a hint as to where the error might be.
That's genius!
And where is the planet Pluto?
This comment is hidden because it contains spoiler information about the solution