MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3uyl7s/daily_programming_puzzles_at_advent_of_code/cxl0fga/?context=3
r/programming • u/Aneurysm9 • Dec 01 '15
179 comments sorted by
View all comments
Show parent comment
2
Simplified even further by doing the replace with regex:
eval(input.replace(/\(/g, "+1").replace(/\)/g, "-1"));
1 u/lukz Dec 03 '15 nice
1
nice
View all comments
Show parent comment
2
u/fezzinate Dec 02 '15
Simplified even further by doing the replace with regex: