Redundant Braces | Stack | Data Structures & Algo
HTML-код
- Опубликовано: 20 окт 2024
- Given a string A denoting an expression. It contains the following operators ’+’, ‘-‘, ‘*’, ‘/’.
Check whether A has redundant braces or not.
Return 1 if A has redundant braces, else return 0.
Github Link for Python Code:- github.com/net...
Follow us on
Playlist of our series-www.youtube.co....
Facebook: / netsetos-751. .
Twitter: / netsetos
LinkedIn: / nets. .
Quora: www.quora.com/....
Instagram: www.instagram.....
#Redundant #Braces #netsetos
Thanks Mam, You are a great Teacher
Nice explanation
Thnkyou this is an easy approach!
thanks mam understood
Thank you! It was the best explained solution
thanks for such a good explanation
Doesn't work for ((a+b-c)).
It has to output redundant. But your code says not redundant
Great solution!
Thank you!!!
this algorithm not working for test case-> (x+y*(a-b+c))
okay (a(-)b) it is reduntant or not will your code work for this test case ?
What if I want to remove the redundant brackets?
Thanks a lot. I thought we cant implement stack without using a class for the same
You messed up at 8.34 .