Timeline for Balanced Parentheses checker in Python
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 20, 2017 at 11:16 | history | edited | John Hon | CC BY-SA 3.0 |
added 62 characters in body
|
| Jan 20, 2017 at 11:16 | comment | added | John Hon | @MathiasEttinger Oh yes. My bad. But i still believe some people may have a use for this code. Also, it can be used as a check before hand perhaps on a long string to save time (would it?). I will edit it my post to warn people of this caveat | |
| Jan 20, 2017 at 10:53 | comment | added | 301_Moved_Permanently |
This code does not work. You should re-read OP's assumptions: the string should contain equal amount of '(' and ')', that's one part; but you failed at considering the balanced part where there is more closing part than opening ones at some point, like in '()))((()'.
|
|
| Jan 20, 2017 at 10:37 | history | edited | Tunaki | CC BY-SA 3.0 |
deleted 22 characters in body
|
| Jan 20, 2017 at 9:59 | review | First posts | |||
| Jan 20, 2017 at 10:37 | |||||
| Jan 20, 2017 at 9:56 | history | answered | John Hon | CC BY-SA 3.0 |