Find index of closing bracket for a given opening bracket in an expression - GeeksforGeeks
Given a string with brackets. If the start index of the open bracket is given, find the index of the closing bracket.
Examples:
Input : string = [ABC[23]][89] index = 0 Output : 8 The opening bracket at index 0 corresponds to closing bracket at index 8.
Read full article from Find index of closing bracket for a given opening bracket in an expression - GeeksforGeeks
No comments:
Post a Comment