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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay