Open dnemirich opened 6 years ago
Please create a separate issue for hw-4. This will be issue for hw-5
correctbracketsequences
. The algorithm should work in the following way. Variable prefix
should be valid prefix of correct bracket sequences in every call of function brackets_generator
. But your code allows a state when n = 2
and prefix = '((('
. And it goes in '(((('
and '((()'
. You can prevent this calling by changing the condition before recursion call. Please fix it
@YakutovDmitriy 4th homework is partially done and 5th is done. Check, please