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.
Hi. For instance when you use round(5.1) or round(5.6) it will give you 5 and 6 respectivey in python. The question asks for 5.1 to be returned as 6. To do so, you can import math.ceil funtion.
Thank you for the documentation!
Thank you so much, I have solved my problems, its because I dont count the spaces between numbers
For me, I don't count the spaces between eight and hundred, so I compare character "e" in 18 and "h" in 800
Why do you think that?
This comment is hidden because it contains spoiler information about the solution
You should check your Big O Notation (O) of your algorithm, if it is O(n^2) then your code will got an erro timed out.
The complex of algorithm should be O(n) or O(nLog(n))
You should check your Big O Notation (O) of your algorithm, if it is O(n^2) then your code will got an erro timed out.
The complex of algorithm should be O(n) or O(nLog(n))
I have an error when compile in codewars,
but when I compile it in another tools, It's work,
I don't know why, please help me!
The error when compile in codewars is:
Fixed_Tests
Caught unknown exception
oh, Thank you so much, I got it.
meaning when it's 7.2, you need to round it up to 8. Maybe you should check Math.ceil method.
Thank you! I already searched on google, but I can not find any post about "rounded up to the next integer".
Google: "rounded up to the next integer".
Can sombody help me?
I don't really understand this sentence: "rounded up to the next integer".
Can somone give me an example?
Thank you so much!
You can change data type like this
bool isTriangle(long a, long b, long c)