OP long gone, closing
I feel as simple as the solution.
Some bullshit... lol. Functions are interesting, is there a list or a book of every funciton ever?
This kata was easy one
Yes, you are right. I was just overthinking. In fact, I am shamelessly using this method in other katas now. Thanks!
It's not a big deal. The numbers would have to be ginormous, certainly far larger than the test cases in this kata, for the recursive gcd to use significant stack depth.
Will this solution not increase the maximal recursion depth to obtain the solution?
I just spent 30 minutes trying to figure out this in one row without using regexp and gave up.
Never heard of this function but i wish i did :(
need to remember this one!
I had no idea that method existed :(
I hate myself for not using this. startsWith crossed my mind to and i was like "that's not gonna work" but I never even thought about endsWith :'(
damn boi, that's clever af
I'm finally starting to feel a bit better with my coding.
Ruby 3.0 should be enabled, see this to learn how to do it