Back to Browse

Time Conversion HackerRank Solution in C++

18.2K views
May 12, 2020
5:41

HackerRank C++ solution for the Time Conversion algorithm problem. This algorithm takes a string parameter representing a time in 12-hour AM/PM format and returns a string corresponding to the time conversion in 24-hour military time. Public member functions from the C++ string class that were used for this HackerRank solution's algorithm include substr() and erase(). All HackerRank solutions on GitHub (please leave a star): https://github.com/IsaacAsante/HackerRank HackerRank Time Conversion problem: https://www.hackerrank.com/challenges/time-conversion/problem

Download

1 formats

Video Formats

360pmp47.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Time Conversion HackerRank Solution in C++ | NatokHD