We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This problem is perhaps teaching us to not to use the effecient way. i dont know why constructors needs to be called while passing in operator<<(ostream& out, Box b). The same can be done with (ostream& out, Box &b) effeciently, but giving a long result as per the problem.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Box It!
You are viewing a single comment's thread. Return to all comments →
This problem is perhaps teaching us to not to use the effecient way. i dont know why constructors needs to be called while passing in operator<<(ostream& out, Box b). The same can be done with (ostream& out, Box &b) effeciently, but giving a long result as per the problem.