DEV Community

Cover image for Day 3 - 5 | Stuck... in Series Track
Nathakorn Chaninthanadecha
Nathakorn Chaninthanadecha

Posted on

Day 3 - 5 | Stuck... in Series Track

Greeting,

I had stuck with the Ruby track | Series chapter for 2 days ago.

But I had solved it already.

Alt Text

I had never known about the .each_cons method

Here is my solution before know about .each_cons

Alt Text

But this is the good ruby magic solution.

Alt Text

I have learned.

🤮 Two days for this !!!

Top comments (0)