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.
the function "enumerate" is so cool!
Took me a few iterations to get this one liner.
i refused to admit that you guys got this solution the first time you went through
That really "Walk" :DDD
done in JS, C
Івасюк де ти є :(
Functional approach... nice)
I did the same but used a lowercase ch as the switch input, is that more or less efficient than this?
You are so full of yourself. You are in no position to tell people what they should and should not be proud of.
And who told you that OP, or anyone in this thread as a matter of fact, was a beginner? Everybody knows what 2.5x faster means. You didn't need to recite the entire hare and tortoise song-and-dance like you're talking to preschoolers. People know when they're being patronized, so have some tact.
Since you're so intent on quoting things, want me to leave off with something?
If LINQ is not a bottleneck, it is not a bottleneck. You are Dunning-Kruger personified.
I hope it's not a solution you're proud of. Linq is slow as a sloth in a tarpit. Very slow. Your code, while short (and maybe cool looking to those who care about looks over performance), is over 2.5 times slower than my plain, ordinary, "normal" algorithm.
It's like if our code was in a race around a track, mine would go around more than 2 and 1/2 times before yours went around even once.
Linq is the worst thing a beginner coder could ever learn.
Man, I sure hope you don't still code like this...
this is how I did it at first then I realized I could use a Counter.
7 years after you, we came up with almost exactly same solution to the same question.
Note:
Your points are not included in the array of your class's points. Do not forget them when calculating the average score!
It holds the same space as any int
Loading more items...