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.
When you create the 2D and sub arrays, you include parens when you initialize. Is this requied? I've seen other implementations that do not include the parens, like in this SO Post.
// create 2D arrayint**a=newint*[n]();
As others have said this is a fantastic answer by the way!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
When you create the 2D and sub arrays, you include parens when you initialize. Is this requied? I've seen other implementations that do not include the parens, like in this SO Post.
As others have said this is a fantastic answer by the way!