Closed akhildhiman7 closed 4 years ago
Hello,
May I know the file name or problem name. I do not remember, which program you are talking about?
The problem name is Equal Stacks and it's in the Data Structures section.
Thanks @akhildhiman7 for pointing the mistake. I have updated the source code accordingly and committed on git. please let us know, if your query has been resolved, will close this issue.
Did not receive any further update, so closing this issue.
In line 58 while checking if s2totalHeight is maximum, it is comparing it's value with s3totalHeight and again with s3totalHeight. It should check with s1totalHeight and s3totalHeight.