Matrix chain multiplication print

https://practice.geeksforgeeks.org/problems/brackets-in-matrix-chain-multiplication/0/

plz tell how to print the required sequence of brackets by modifying my code …
reply at the earliest…

@S19LPPP0202 the editorial of this problem is given : https://www.geeksforgeeks.org/printing-brackets-matrix-chain-multiplication-problem/

Couldn’t understand from there that is why I am asking u.
Don’t forward the editorial as it is …
I want u to explain how to print …
I want to understand the logic …not mug up …
I can also access the editorial…don’t forward the editorial…

Plz explain properly now

@S19LPPP0202 if you are having doubts in the editorial then ask that, what did you not understand in it?

How to print the brackets is what I am not able to under stand …I know mcm part

@S19LPPP0202 that has been explained in great detail in the editorial along with the code, so please point out the exact part which you did not understand so I can help you better.

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.