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 am having the same problem.
My code -->
while read line ; do echo ${line:2:1}
done
Passes all tests except test2. It never reads the last line of test2.
Can someone tell me whats wrong?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cut #1
You are viewing a single comment's thread. Return to all comments →
I am having the same problem. My code --> while read line ; do echo ${line:2:1} done Passes all tests except test2. It never reads the last line of test2. Can someone tell me whats wrong?