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 don't like using both declarations and expressions for functions.
The callback you pass into reduce can do everything, including parseInt
This comment is hidden because it contains spoiler information about the solution
Also, the input range is given. Any good competitive programming participant should be able to judge the required complexity based on the input range ;-)
No reason for the backslash character. I just copied the mapping between letters from some page and it was there. It may be removed.
Short variables save time needed to code so simple things :P And I will never go back to this code so it doesn't matter. It's not a production.
I think the whole case+arr.push statement can be more easily (and more succintly) done with an object that maps certain Cyrillic characters to Latin characters.
Why did you add the backslash character?
I see you use very short variable names (c, e, al).
In most cases it's better to use variable names that clearly communicate what kind of value
they refer to.
On CW you can see quite a few katas sharing the task, but with different requirements:
Insane
in the title)Please note that these cases do not violate the notion of "self-contained".
Well, its a 2kyu kata. What do you expect? :P
I did, but my experience with the katas on this website is that they are self-contained.
You surely didn't read the first line ;-)
Yes.
The only hint is the part where it says it'll have tests for big inputs. That's not very explicit.
Have you read the descriptions? ;-)
This comment is hidden because it contains spoiler information about the solution
Good explanation, Thank you! Follower++
Loading more items...