I'm giving myself a headache trying to find the math for part 2. The basis for the math might be physics, but it's definitely math, and as far as I'm concerned, a major issue! (not that a tag would enlighten me on the math required, but to figure it out I need a refresher on calculus, not physics)
Use regex101.com
Can I get an explanation for this regex?
It says in the description that the empty string is allowed to match.
I think it should be 0|1(01*0)*1)+ , because if put * at the end it will match "" empty string which is wrong.
I'm giving myself a headache trying to find the math for part 2. The basis for the math might be physics, but it's definitely math, and as far as I'm concerned, a major issue! (not that a tag would enlighten me on the math required, but to figure it out I need a refresher on calculus, not physics)
It is more a suggestion than an issue:-) and if a tag needed to be added I think it would be more physics than mathematics.
need to add the tag: "mathematics"
import org.Junit.Test - must be org.junit.Test
Testing class must be public