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.
I like the logic behind your solution. Very similar to mine
this is not performant. it goes over list multiple times
This is a smart one.
No but tests guarantee that there is ever only two different numbers, one of them unique.
It would indeed.
That's what I've done.
Guys will that work if there is two different uniq numbers?
wow, smart one
but if arr has three uniq numbers, Could your function run? I think it not real nice
Because your post is visible in the homepage if you don't do it for people who still hasn't solved the kata and you posted a solution in your post. That's why.
why?
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
I use the "Fork" button, then "Run" and it shows the time. There can be quite a bit of variation between separate runs of the same code though.
Hi yall, wouldn't using arr[:3].count(a) be more efficient? Sorry if this is a dumb question.
Loading more items...