You are viewing a single comment's thread. Return to all comments →
I used similar approach, but getting TLE. Btw it took me a while to understand your code, until I saw stack is actually an ArrayList ;)
Seems like cookies are disabled on this browser, please enable them to open this website
Poisonous Plants
You are viewing a single comment's thread. Return to all comments →
I used similar approach, but getting TLE. Btw it took me a while to understand your code, until I saw stack is actually an ArrayList ;)