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.
Bro i blive its a good one, some times u have to make delays even with loops itself,default value in loop .02 seconds we made it 2 first then another loop to run it 4 times.
Time sleep is very useful for any task that you want to run at an interval.
For example if you write control software for a camera. If you want 10 fps, you might time.sleep for 100ms.
Or you might have a web scraper that should refresh every 6 hours.
There are even safety reasons. Making your code slower helps deal with timing attacks:
https://www.techtarget.com/searchsecurity/definition/timing-attack
You cannot get that behaviour wihout using any classes or objects in python
Can anyone explain how to arrive at these equations?
this code will catch an undesired error for lists that contain no integers
This comment is hidden because it contains spoiler information about the solution
Using only correct NegaFibonacci numbers, there is no ambiguity.
1 and 2 are not consecutive NegaFibonacci numbers, they are separated by -1.
You say f(3) -> [2, 1]
But shouldnt the output be [3]?
(Besides, 1 and 2 are consecutive numbers)
Some values have multiple solutions.
How should this be priorizited?
Nice implementation of the naive solution, though I don't think it is best practice to actually store all the factors in a list.
I don't get it. I thought comments are only visible once you've either solved the kata or given up so what are spoiler flags for?
I challenge you to create a function that is not a class.
Smart, like it alot
Wow beautiful solution!
This comment is hidden because it contains spoiler information about the solution
I've created a kumite with a simple random input generator. Considering how bad the test cases in this kata are, at least this one thing should be added in all languages to weed out many wrong solutions.
Loading more items...