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.
As i understand, it seems there is empty value in the array after reading input. check if you have translated the input to remove '\r' before reading to array.
debug using "bash -x script_name.sh" :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer - Bash!
You are viewing a single comment's thread. Return to all comments →
As i understand, it seems there is empty value in the array after reading input. check if you have translated the input to remove '\r' before reading to array.
debug using "bash -x script_name.sh" :)