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.
Awful phrasing of question, once again. Even though this is one of the more straightforward questions, it was baffling to go through query 2 and think back as to what the person asking the question wanted.
The answers array came out of nowhere; especially when all the prompts in the question talk about printing the query.
It is a fairly straightforward question. Hint, make an answers array; during query 2, instead of printing just store it in the array. Return the array at the end.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Dynamic Array
You are viewing a single comment's thread. Return to all comments →
Awful phrasing of question, once again. Even though this is one of the more straightforward questions, it was baffling to go through query 2 and think back as to what the person asking the question wanted.
The answers array came out of nowhere; especially when all the prompts in the question talk about printing the query.
It is a fairly straightforward question. Hint, make an answers array; during query 2, instead of printing just store it in the array. Return the array at the end.