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 works, but don't use re unless there's another way, ok?
Very clever solution. Good job guyssss
It's perfect until you try it with n > 300.
You seem to be implying this is wrong, but actually, it's correct up to n==300.
Not only that, but for all inputs in that range it features O(1) complexity
This is literaly the PERFECT solution
Bravo. Best solution I have seen for this kata
By doing the COBOL version, I realized my original function didn't handle properly cases like this one: a="0.2", b="5", a="0.2", b="0.005", a="0.1", b="0.001". I would suggest to add them to fixed tests for all languages.
That's the way!!
I fixed this solution here: https://www.codewars.com/kata/reviews/52a78825cdfc2cfc87000008/groups/620b7948793105000108b662
True, nice catch! Basically this happens because this solution does not calculate well the (-3 - 2), it returns -1 instead of -5. It would be nice to add this test to the solution validation.
This solution returns incorrect result for expression:
(2 - 2.5) - (-3 - 2) * (-5)
Returns -5.5, but should be -25.5
[...array] creates a temp array. No temp arrays allowed in this exercize
Me lie un poco ... en fin.. a seguir aprendiendo.
Vaya 😳
real python way
Wow, that's some interesting fact you got there.
Loading more items...