You are viewing a single comment's thread. Return to all comments →
I think you have the same problem as me with what they mean by top-view but I'd like to point out some tiny improvements to your code.
Storing outputs in a vector is a pointless inefficiency. You can cout in your loops instead of pushing the values to a vector that prints after.
Seems like cookies are disabled on this browser, please enable them to open this website
Tree : Top View
You are viewing a single comment's thread. Return to all comments →
I think you have the same problem as me with what they mean by top-view but I'd like to point out some tiny improvements to your code.
Storing outputs in a vector is a pointless inefficiency. You can cout in your loops instead of pushing the values to a vector that prints after.