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.
Okay guys, I understand that at first it seems nonsensical, but yes, it prints the first two because the delimiter ' ' space doesn't exist. However, as we saw earlier, before it was tabs and now it's spaces. The sample doesn't have four words, but if you add them, it prints the fourth. The error is the sample; the command works.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cut #7
You are viewing a single comment's thread. Return to all comments →
Okay guys, I understand that at first it seems nonsensical, but yes, it prints the first two because the delimiter ' ' space doesn't exist. However, as we saw earlier, before it was tabs and now it's spaces. The sample doesn't have four words, but if you add them, it prints the fourth. The error is the sample; the command works.