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.
guys how if the total time is 14.67 walking 1km for 10 minutes + taxi 4.67 for the remaining in this case
print(calculate_optimal_fare(8, 10, 90, 2, 6))
whish any one can help me understand it
Prolog (even with empty solution): "/workspace/example.plt:71: test random_tests: assertion raised "Stack limit (1.0Gb) exceeded"
Perhaps you're calling user's predicate inside reference solution, or something like that?
Amazing!
Nice kata!
That's was pretty funny
HFH nah u square!
This comment is hidden because it contains spoiler information about the solution
Wondering the same thing I used stoi too. had a string variable add each sqaured number onto the string and return a stoi of that string. but I get error from an exception being caught. Not sure why this isn't allowed.
This has been by far the easiest kata for me. The code almost wrote by itself and I passed the tests at first try.
It's better now, but you have a typo, focus on the test it's failing now and you'll find it.
it works without for loop too. just if and the result is same. But still doesn't work. work in progress
I thought I need to iterate the array
simple math
Exactly
Finally...
Loading more items...