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.
I found this problem description tricky and wording could do with improvement.
original wording
The first line contains a single integer, q, denoting the number of queries. The subsequent lines describe each query in the following format:
The first line contains an integer, n, denoting the size of the list.
Each line of the subsequent lines contains a non-empty string describing ai.
change above wording to
A- first line is an int nominating the number (X) of data sets to follow.
B- 2nd line is an int, nominating the number of n lines of text to follow.
C- next n lines are text
repeat B & C X times.
obvious once spotted. :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Shashank and the Palindromic Strings
You are viewing a single comment's thread. Return to all comments →
Seens I am first post :)
I found this problem description tricky and wording could do with improvement.
original wording
The first line contains a single integer, q, denoting the number of queries. The subsequent lines describe each query in the following format:
The first line contains an integer, n, denoting the size of the list.
Each line of the subsequent lines contains a non-empty string describing ai.
change above wording to
A- first line is an int nominating the number (X) of data sets to follow.
B- 2nd line is an int, nominating the number of n lines of text to follow.
C- next n lines are text
repeat B & C X times.
obvious once spotted. :)