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.
Because there's no path
There's onle a single point ['B'].length === 1
You are not expected to create a function. You need to create a variable (name can vary between lang, but in C++ it's
multiple_of_3_regex
) containing regular expression that matches with binary numbers that are multiple of 3.i can't understand what is the name of the function i should write
I can write the algorithm for automata and get the desired output but i have no idea how to use regex here. Can someone pls explain or show an example?
Nice one, thanks
This comment is hidden because it contains spoiler information about the solution
cheater!))
A problem with your code is not a kata issue. You may ask a question rather. Also, we are not magicians and it is not possible to help you if you don't provide at least some basic informations. Please refer to this documentation page: https://docs.codewars.com/training/troubleshooting
Approved by someone
Found out that my solution was not GENERAL.
regex101.com helped me a lot, try it with different values even if they pass in your test kata attempt.
Never give up :)
Nice kata, I used Monte-Carlo method)
The description of the performance requirements are mainly there to let the user know how many tests they are going to need to face, as previouly requested by @dfhwze. It might be a bit too much to create a full section for it, so I have now changed it up a bit to include the number of tests in the intro instead :D
I see, I'll keep this in mind.
The is_prime function came first, but later on I got to use @mauro-1's solution which involved gmpy2.is_prime. I had simply forgot to remove the regular function, thanks for noting that :D
Loading more items...