Блог пользователя rahul_1234

Автор rahul_1234, история, 7 лет назад, По-английски

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
  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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..!