wocagav's blog

By wocagav, history, 19 months ago, In English
  • Vote: I like it
  • 0
  • Vote: I do not like it

By wocagav, history, 20 months ago, In English

How to solve below problem statement.

given a string s which contains only curly braces and questions was what is the minimum number of operations to become it valid expression and return corrected string. There are three operations:

insert { or } in any position

delete { or } in any position. flip any position so { change by } or vice versa.

Full text and comments »

  • Vote: I like it
  • +2
  • Vote: I do not like it

By wocagav, history, 20 months ago, In English

Please provide full explaination. Thanks in advance. link

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it

By wocagav, history, 21 month(s) ago, In English

Please help in thought process .Link of Problem

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By wocagav, history, 22 months ago, In English

You can check many solutions have passed main test also which was only 67 and now it has 100 test cases , don't you think solutions should be rejudged.

Full text and comments »

  • Vote: I like it
  • +50
  • Vote: I do not like it

By wocagav, history, 22 months ago, In English
  • Vote: I like it
  • +5
  • Vote: I do not like it

By wocagav, history, 2 years ago, In English

Hi can any one please explain the approach to solve this question; (https://www.codechef.com/START24B/problems/PALINLOVE) Thanks in advance.

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it

By wocagav, history, 2 years ago, In English

Please explain how to solve this problem. https://cses.fi/problemset/task/1110

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By wocagav, history, 3 years ago, In English

There is an array of strings. Suppose there is a string whose last character matches with the first character of another string. In that case those two form a ring. You have the find the maximum length of the ring formed by the strings in the array. Let me explain the problem with an example. Suppose the array of strings is {ear, track, tired, rat, doe}. Here the maximum ring will be ear->rat->tired->doe>ear. So, the length will be 4.

If possible please provide code also .

Full text and comments »

  • Vote: I like it
  • -8
  • Vote: I do not like it