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.
Your solution is fine. But the sample input is "07:05:45PM" i.e including ":" (colons). Can you please tell me why did you omit this while taking input? Or is it not necessary?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
Your solution is fine. But the sample input is "07:05:45PM" i.e including ":" (colons). Can you please tell me why did you omit this while taking input? Or is it not necessary?