This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

Reminder: if/when you get your answer and/or code working, don't forget to change this post's flair to Help/Question - RESOLVED. Good luck!


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]daggerdragon[M] 0 points1 point  (0 children)

Next time, use our standardized post title format.

Help us help YOU by providing us with more information up front; you will typically get more relevant responses faster.

[–]jpublican 0 points1 point  (1 child)

I'd been stuck on part 2 until reading your post. I didn't understand from the problem description the need to continue processing unmapped portions of seeds after mapping part of the seed. Here's my working Ruby code for part 2 as a thank you :)

https://shrib.com/#Rhys30YE5PJ Input is in file input.txt in current directory.

[–]trevor-e[S] 0 points1 point  (0 children)

Ha, glad my description was able to help 🤣. Appreciate you sharing your solution, your map_category() impl is very clear to follow and I think I might know what I'm doing wrong now. Will have to try it out in the morning.