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.
It's the same thing
def print_statements():
# Printing lines of code:
data = ["Hello Mark!","This is my first python script.","Python will be fun to learn!","I am not at COGS","I am at home in my jammies."]
print("\n".join(data))
You need a faster solution to pass all tests. For example, my solution computes
fib(1209268)
in less than 1 second.If you use an O(log(n)) algorithm, you can even handle the case where n is three million.
So there is no need to decrease the max number since the purpose of this kata is to tell you that O(log(n)) algorithm.
This comment is hidden because it contains spoiler information about the solution