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.
Hey, great explanation, that cleared out some stuff, could you please explain why this code fails when the numbers are separated by a space, rather than a comma?
I assume it is because ss thinks the string ended because space is \0. Is that correct?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
StringStream
You are viewing a single comment's thread. Return to all comments →
Hey, great explanation, that cleared out some stuff, could you please explain why this code fails when the numbers are separated by a space, rather than a comma?
I assume it is because ss thinks the string ended because space is \0. Is that correct?