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.
No random tests.
No sample tests.
Nice solution!
This comment is hidden because it contains spoiler information about the solution
The g means global which means check the entire string and don't just stop at the first number it finds.
Bitwise operators internally convert JavaScript numbers (doubles) to signed 32-Bit integers to perform their function; see the spec for the bitwise NOT operator and bitwise binary operators. 2,147,483,647 is the largest positive value a signed 32-Bit integer can take (see e.g. its Wikipedia article).
edits: Originally I said that their return value is a 32-Bit integer, which is true, but beside the point.
This comment is hidden because it contains spoiler information about the solution
Very nice idea to start again the loop
Brilliant solution!!
This comment is hidden because it contains spoiler information about the solution
Brilliant solution!! The initial statements for initialising and management of cases is really good. Congrats
This comment is hidden because it contains spoiler information about the solution
Great idea reusing functions
This comment is hidden because it contains spoiler information about the solution
Loading more items...