4
\$\begingroup\$

While collecting a list of all challenges related to balanced strings I found that we have (at least) 4 challenges related to fixing unbalanced strings by adding or removing parentheses/braces/brackets. I haven't compared the specs in detail yet, but I figured there is likely going to be some overlap, and I thought it should probably be up to the community anyway to decide if any of those are duplicates or not:

If the outcome is "they're all sufficiently different" that's fine, but I figured we should talk about it...

\$\endgroup\$
1
  • \$\begingroup\$ I believe that the #2 and #3 are sufficiently different from the others, but #4 and #1 are dupes. \$\endgroup\$
    – GamrCorps
    Apr 7, 2016 at 14:02

1 Answer 1

3
\$\begingroup\$

1 and 4 are very similar. They both allow only brackets, and they both require the minimum number of additions to make the brackets fully balanced. 4 is newer, but IMO better written with a more concise spec. Therefore, we should close 1 as a dupe of 4.

2 and 3 are also very similar. Initially, I was going to recommend closing one of them, but I've changed my mind. I think the differences are significant enough that they should both stay open.

They both require parsing of string literals and comments, but 2:

  • Is multiline.

  • Only requires balancing parentheses.

  • Allows adding or deleting of parentheses.

3:

  • Is single line.

  • Requires balancing several types of brackets.

  • Only allows removing brackets.

So I'd say 2 and 3 should stay open.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ I agree, so I went ahead and put the 5th dupe vote on 1. \$\endgroup\$
    – user45941
    Apr 7, 2016 at 20:35
  • \$\begingroup\$ @Mego \0/ \0/ ! \$\endgroup\$
    – DJMcMayhem
    Apr 7, 2016 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .