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 just forked it, and it passed all tests.
i tried to run it and its returning false;
This comment is hidden because it contains spoiler information about the solution
Me... when I saw this solution, after spending an hour doing it the hard way: https://www.youtube.com/watch?v=PFr-kNbXHew&ab_channel=HuffPost
yeett
Sorry. I am new here. Next time I will.
Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
Only one flaw - it does not check if pin is null, it could result in null pointer exception.
Please, use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
aaronkyl, please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
As \ is a special character in regex but also escape character in java. To pass a literal '\' into regex, you need to escape it with another '\' in java string.
String#matches compiles Pattern for each string. It would be more efficient to extract Pattern as a static final field and then validates strings via Matcher manually.
Loading more items...