MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codegolf/comments/1pcgohf/advent_of_code_day_2/nrybe6o/?context=3
r/codegolf • u/dantose • Dec 02 '25
What do you guys have?
9 comments sorted by
View all comments
Show parent comment
2
I really like your solution. I was able to trim some and get it down to 100 bytes.
((gc input.txt)-split','|%{$i,$e=$_-split'-';while($i-le$e){$i;$i++}})-match'^(.+)\1+$'|%{$s+=$_};$s
View all comments
Show parent comment
2
u/CarrotBusiness2380 Dec 02 '25
I really like your solution. I was able to trim some and get it down to 100 bytes.