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.
This comment is hidden because it contains spoiler information about the solution
As a beginner this is beyond me. Def need to practice more and learn more. But it is cool to see the possibilities and I can try this in the future.
What does the '?' do?
This comment is hidden because it contains spoiler information about the solution
Hello, hope you could please explain how the && op works here? Thanks!
This is the case when optimization interferes with reading.
We are not worthy of your knowledge, thank you!
this is what i try at the first place but im so beginner doesn't understand how this syntax logic going, so i keep getting error. then i use the for loop to do it. great kat, thanks mate
i did the same thing and it didnt work, so i just solved it the long way
you just described what i did lol
You shouldn't discuss code / methods without using the spoiler flag, otherwise anyone can see. I have added the flag to your comment.
This comment is hidden because it contains spoiler information about the solution
I agree! It's the one that actually does what's asked instead of filtering out everything that's not a number.
This comment is hidden because it contains spoiler information about the solution
Just wow!
I agree mostly, but the instructions do say that the incoming data is lists of non-nengative integers and strings. So the arrays have two types of data. So either way accomplishes the goal. However I do prefer to filter our strings for the reason mentioned that in the future should more data types be added then this function still does it's task without changes. Since the task was to remove strings and not return numbers. The top rated one would require rework to function correctly if other data types were added in the future, so I fail to see why it's "best practice"
Loading more items...