HACKER Q&A
📣 fjfaase
Extra puzzle for day 10 of Advent of Code
What is the minimum number of brackets to add to fix every line of the input? (I think it is 81 for the example input.)
And what is an efficient algorithm for find this number?
👤 jstx1
Accepted Answer ✓
Isn't that number fixed for each line? You just need to close every open bracket (in the correct order obviously). Or do you mean something else?