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.
+1
you can use Math.min(
array) this way instead of apply
you're 4 kyu so a 30 minute problem can either be 5kyu or 6 kyu easily so it's not outrageous. And if it's not outrageous no need to cherry pick
This comment is hidden because it contains spoiler information about the solution
RegExp don't work like that brother. It will just check only one single character inside the bracket as if you write like you've shown. Check https://regexlearn.com/cheatsheet .
Awesome
to ignore the uppercase with the lower case, because A !=a in JS
easier to understand, and does the same thing as the first solution!
@JSNoob123 This solution also matches for spaces that are in the string as well as punctuation with the + sign.
Different possible reasons. Maybe you're more familiar with some concepts than others (every person is different). Also, keep in mind that you can check the date when the kata was published on the
Details
page, on the left of each kata. Newer katas (from last years) are more difficult than katas published more than 8 years ago. This one, for example, was published in 2013. There is kind of a new standard right now, so this kata would probably not be ranked more than 7 kyu if it would be published today. But re-ranking a kata is not possible.This problem only took me 30 minutes compared to other problems which take me way longer. Why is this a 5th kyu problem?
Personally I dislike falsy values. It makes the code a bit harder to understand. I tend to use boolean values instead when I can, always.
This comment is hidden because it contains spoiler information about the solution
You make me want to solve every string problem with a regular expression, because you create something as beautiful as this.
This comment is hidden because it contains spoiler information about the solution
Loading more items...