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 understand how to round up the minutes. This command does not work:
Please tell me how to round up the minutes?
Thanks! I realized my mistake! I will have to solve using a different algorithm.
Try printing the needle and think about what would happen with your pattern with that particular input.
Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse
This comment is hidden because it contains spoiler information about the solution
Tell me, what's wrong with my code? The problem is only with the test: nonCharTest.
My code here:
RegEx is ok. Delete ^ and $.
It was very interesting and exciting!
Kruto!!! 😎
Yes, this was the first solution. I didn't like it either. Then I corrected it to the flag. Thanks for the comment! 👍
Yes, this was the first solution. I didn't like it either. Then I corrected it to the flag. Thanks for the detailed comment! 👍
The "a[i] = 99999999;" line is avoidable by using a flag like "boolean present = true"
but even then, the loop keeps going until the end.
Is fixable by doing something like "if ((a[i] == b[j]) && !present)" but it is so unreadable.
The best way, I think, is to just put the inner loop into a new function isPresent() which takes a[i] and b as parameters, instead of "a[i] = 9999999" the function would return true, and would return false instead if the loop ends.
Thank you fellow Human!
This comment is hidden because it contains spoiler information about the solution
What the hell is this?! LMAO how's this a correct solution
Loading more items...