You are viewing a single comment's thread. Return to all comments →
one query: If stack is empty then peek should return null. Is there any need for this check "!stack.empty() "
Seems like cookies are disabled on this browser, please enable them to open this website
Balanced Brackets
You are viewing a single comment's thread. Return to all comments →
one query: If stack is empty then peek should return null. Is there any need for this check "!stack.empty() "