Given an input of angular bracket sequence, rules to compute marks are:
• <> block has marks 1
•XY has marks X+Y where X and Y are balanced <> blocks
• has marks 3*X where X is a balanced <> block
WAP with appropriate DS and without STL to calculate total marks of given balanced bracket string
e.g = 1 mark
o=11 = 1+1 = 2 marks =<1>= 3 *1 = 3 marks
Data Structures (Paranthesis)
Question not clear
plz send the link of original question
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.