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 found this Kata to be difficult, in my opinion it should be 4 or 5 Kyu. Can someone explain this solution to me? Thank you.
This works very well to solve the challenge, but on the IDE (IntelliJ) occurs an exception > .PatternSyntaxException: Stack overflow during pattern compilation.
Could someone explain to me? Ty
Please do not just post chatGPT explanations here. It's basically just the code in plain text and should at least have the spoiler flag.
This comment is hidden because it contains spoiler information about the solution
If you still need the solution. Check the order of your phrases.
Because it's not a wilson prime.
This comment is hidden because it contains spoiler information about the solution
I really enjoy the effort you put into formatting your comments. Please take this humble thumbs up
👍
Can someone explain me this solution? Ty!
Pls, Why do I need subtract 1 in nb_petals for the result to work?
I didn't understand how word[index] worked into map. Anyone could explain me it?
yeah ) kinda
.match
returns null if it found nothing, and you don't want that. You want to return 0 in that case, hence the 0 at the end.If you're talking about the syntax, it's called Ternary Operator. Basically it returns the left side of the
:
if the condition is truthy, or the right side of the:
if the condition is falsy.Could someone explain to me the zero at the end?
This comment is hidden because it contains spoiler information about the solution
Loading more items...