MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3uyl7s/daily_programming_puzzles_at_advent_of_code/cxj3ut1/?context=3
r/programming • u/Aneurysm9 • Dec 01 '15
179 comments sorted by
View all comments
Show parent comment
0
<?php foreach(str_split(file('i')[0])as$p=>$d)($f-=$d=='('?-1:1)>=0|$b?:$b=$p+1;echo"$f $b";
Part 1 and 2 golfed in PHP but some of us in the larachat slack
View all comments
Show parent comment
0
u/jamosaur- Dec 01 '15
Part 1 and 2 golfed in PHP but some of us in the larachat slack