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.
That is correct, but as others have said here, the astronaut labeled 7 is implied, because the astronauts are labeled from 0 to N - 1. If N is 10 (as given on the first line of the sample case) then all astronauts from 0 - 9 are present, including 7 (who, as you say, was not listed in the pairs)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Journey to the Moon
You are viewing a single comment's thread. Return to all comments →
That is correct, but as others have said here, the astronaut labeled 7 is implied, because the astronauts are labeled from 0 to N - 1. If N is 10 (as given on the first line of the sample case) then all astronauts from 0 - 9 are present, including 7 (who, as you say, was not listed in the pairs)