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.
never knew
undefined
would evaluate like that with bitwise ops. meanwhileundefiend + 1
equalsNaN
cool
I frequently forget about the bitwise comparators | and &
The best practicle is not use tested function for make test content: if you function got same error it can make false negative test case.
===
would disallow implicit conversion, so i'd imagine that wouldn't be any slower than==
implicitly converting things.Thinking about the performance of such an operator is surely premature optimization though.
could === instead of == be even slower ?
it basicly counts up every symbol in a string and returns the letter that repeats the same amount of times. if there are some letters that are all repeated the least, it returns the first one that appeared. if the amount of each symbol's repetition is the same, it returns None.
I'm a beginner here. Could anyone tell me what the purpose of this program is?
Array.includes is a linear search (O(n)), so this is actually O(n^3).
guys, don't take it seriously, it was just a joke. I like both JS and Python equally, I just feel more productive with Python then with JS.
This is short and sweet!
Where exactly is the set? This is using a dictionnary :D
JavaScript has committed hard to backwards compatability. Python has been my main language at work this year and the compatability issues are a nightmare.
I understand that take, but not from a JavaScript developer. I'm intrigued. What do you think makes it worse than JavaScript?
Python is the worst. I really can't stand it most of the time but I am cursed with having to use it.
I had to add timeout to make it slower :D
Loading more items...