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.
did the same hehe
I thought i had to do string to number
Beautiful one-line
great!!
CODING TEMPLE RULES! #thieves118
This comment is hidden because it contains spoiler information about the solution
best
True, true
Yeah, you are right. People are just deciding to be extra and do multiple lines of code for no reason. Maybe they want to practice some other techniques?
Indeed many solutions directly filter out string values and leave everything else in the list, but as @Chrono79 said the Kata input only consists in intgeres and strings.
Furthermore, there exist realistic cases in which one can be interested in retaining only integers or filtering out only specific data types.
The input contains only non-negative integers and strings.
this doesn't filter out the strings but allows only ints. If the source data had booleans or other data types this algo would lose all those other types and only preserve ints, which is not accurate to the request.
+1