NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

Remove minimum parantheses to make Valid Parentheses

Open sukritidawar opened this issue 5 years ago • 20 comments

🚀 Feature

Given a string of '(' , ')' and lowercase english characters.

The task is to remove the minimum number of parentheses so that the resulting parentheses string is valid. A parentheses string is valid if and only if: 1.It is the empty string, contains only lowercase characters, or 2.It can be written as AB (A concatenated with B), where A and B are valid strings, or 3.It can be written as (A), where A is a valid string.

Example:

  1. Input: "he((l)l)o)" Output: "he((l)l)o"
  2. Input: ")))(((" Output: ""

Have you read the Contributing Guidelines on Pull Requests?

Yes.

Motivation

Helps in enhancing problem-solving.

Pitch

Helps in understanding the basics of stacks.

sukritidawar avatar Feb 19 '21 19:02 sukritidawar

I want to work on this issue in c++

sukritidawar avatar Feb 19 '21 19:02 sukritidawar

I want to work on this issue . I have solved many questions on strings in c++. please assign me this.

yashikajotwani12 avatar Feb 20 '21 04:02 yashikajotwani12

I would like to work on this in Python

nandinib1999 avatar Feb 23 '21 07:02 nandinib1999

I would like to work on this in c++. please assign this to me .

keshav2508 avatar Feb 24 '21 09:02 keshav2508

@sukritidawar @yashikajotwani12 @nandinib1999 @keshav2508

Are you all participating in GSSoC '21 ?

HarshCasper avatar Mar 02 '21 08:03 HarshCasper

@sukritidawar @yashikajotwani12 @nandinib1999 @keshav2508

Are you all participating in GSSoC '21 ?

yes, I am

sukritidawar avatar Mar 02 '21 08:03 sukritidawar

Welcome Back @sukritidawar !

We hope you can build up on your contributions from Contributor's Hack :)

HarshCasper avatar Mar 02 '21 08:03 HarshCasper

Welcome Back @sukritidawar !

We hope you can build up on your contributions from Contributor's Hack :)

Yes definitely! Thank you :)

sukritidawar avatar Mar 02 '21 08:03 sukritidawar

@sukritidawar @yashikajotwani12 @nandinib1999 @keshav2508

Are you all participating in GSSoC '21 ?

yes mam!!

yashikajotwani12 avatar Mar 02 '21 12:03 yashikajotwani12

yes i am

On Tue, Mar 2, 2021 at 2:02 PM Harsh Mishra [email protected] wrote:

@sukritidawar https://github.com/sukritidawar @yashikajotwani12 https://github.com/yashikajotwani12 @nandinib1999 https://github.com/nandinib1999 @keshav2508 https://github.com/keshav2508

Are you all participating in GSSoC '21 ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TesseractCoding/NeoAlgo/issues/2154#issuecomment-788725304, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLYUECZTUZK7N33RLOMH63TBSPCJANCNFSM4X44N3AA .

keshav2508 avatar Mar 02 '21 14:03 keshav2508

@yashikajotwani12 @keshav2508

The Issue is already taken up by @sukritidawar in C++. Please let me know if you plan to work on it in some other language.

And @yashikajotwani12 please refer me by he/him tags :)

HarshCasper avatar Mar 02 '21 15:03 HarshCasper

@yashikajotwani12 @keshav2508

The Issue is already taken up by @sukritidawar in C++. Please let me know if you plan to work on it in some other language.

And @yashikajotwani12 please refer me by he/him tags :)

I would like to do the same in python. Please assign me .

yashikajotwani12 avatar Mar 03 '21 13:03 yashikajotwani12

@nandinib1999 I have assigned you this Issue in Python.

@yashikajotwani12 Please take up this Issue is some other language, since @nandinib1999 claimed it first

HarshCasper avatar Mar 04 '21 04:03 HarshCasper

@nandinib1999 I have assigned you this Issue in Python.

@yashikajotwani12 Please take up this Issue is some other language, since @nandinib1999 claimed it first

I can implement it in c. May I @HarshCasper

yashikajotwani12 avatar Mar 04 '21 14:03 yashikajotwani12

@nandinib1999 I have assigned you this Issue in Python. @yashikajotwani12 Please take up this Issue is some other language, since @nandinib1999 claimed it first

I can implement it in c. May I @HarshCasper

Assigned :+1:

HarshCasper avatar Mar 05 '21 05:03 HarshCasper

@nandinib1999 I have assigned you this Issue in Python. @yashikajotwani12 Please take up this Issue is some other language, since @nandinib1999 claimed it first

I can implement it in c. May I @HarshCasper

Assigned 👍

Thankyou So much :)

yashikajotwani12 avatar Mar 05 '21 10:03 yashikajotwani12

@HarshCasper I would like to work on this issue in Java. I am a GSSOC '21 participant. My code will have comment lines to make it explanatory and understandable to everyone. I will be very happy if I am assigned this issue and allowed to work on this.

DevilAJ avatar Mar 08 '21 13:03 DevilAJ

I am a GSSOC'2021 participant. Please assign me this work.I am good at C++,C,Java and python.Also good at algorithm and data structures.I will write programmes with detailed explanation and proper commenting.

pallavidhere23 avatar Mar 08 '21 15:03 pallavidhere23

I would like to implement the above question in Python, I will write neat and clean commented code please assign me this issue under GSSoC 2021

guruc-134 avatar Mar 09 '21 05:03 guruc-134

@nandinib1999 I have assigned you this Issue in Python.

@yashikajotwani12 Please take up this Issue is some other language, since @nandinib1999 claimed it first

Thanks a lot!

nandinib1999 avatar Mar 10 '21 05:03 nandinib1999