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.
Thanks for the edit
Interesting, thanks @Kacarott
Error in random tests in Python
The description is ambiguous:
What is an earlier match? Earlier name in the description or lowest index in the string?
Also typo
travel_expenses
Perhaps add links to other katas mentioned in description
Can be interesting to replace 7th character
;)
by;-)
or:X
for code golfing purposeThis comment is hidden because it contains spoiler information about the solution
259 chars
Why asking to return a string rather than an integer if leading zeros should be ignored?
Using integer avoids a useless conversion
Calculate palindrome only once per loop
Just keep in mind the following:
This comment is hidden because it contains spoiler information about the solution
Still readable though, pretty sure it is not yet the shortest answer
Note that it is true in Python - or C because Python engine is built in C - due to type coercion:
In these languages a boolean is a integer subtype.
It is not true in all languages : JS for example has a distinct type for boolean.
You are welcome :-D
Loading more items...