Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

rahul_1234's blog

By rahul_1234, history, 9 years ago, In English

You are given a string of ‘n’ characters where n is even. The string only consist of 6 type of characters: (){}[]. The task is to form a well formed expression. A well formed expression consist of proper nesting of braces and their is no priority between the braces like [ > } > ). You can edit any bracket and change it to remaining types for accomplishing the task.

Example 

A. "(){}" is valid 

B. "({[]})” is valid 

C. “((})” is invalid
  • Vote: I like it
  • -17
  • Vote: I do not like it

| Write comment?
»
9 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

can you provide the question link..the question you asked is not clear..!

like if we can make any number of changes then there will many possible solutions for a given case..!