filmov
tv
Time Conversion Problem in Java | Hacker Rank Interview Preparation | One Month Preparation Kit.

Показать описание
This video is about Step by step explanation of Time Conversion problem on Hacker Rank.
---------------------------------------------------------------------------------------------------------------------
Given a time in -hour AM/PM format, convert it to military (24-hour) time.
Note: -
--------------
- 12:00:00AM on a 12-hour clock is 00:00:00 on a 24-hour clock.
- 12:00:00PM on a 12-hour clock is 12:00:00 on a 24-hour clock.
Example:-
-------------------
- '12:01:00PM'
Return '12:01:00'.
- '12:01:00AM'
Return '00:01:00'.
Function Description :-
-------------------------------------
Complete the Time Conversion function in the editor below. It should return a new string representing the input time in 24 hour format.
Time Conversion has the following parameter(s):
string s: a time in 12 hour format
Returns:-
------------------
string: the time in 24 hour format
Input Format:-
------------------------
A single string that represents a time in 12-hour clock format (i.e.: hh:mm:ssAM or hh:mm:ssPM ).
#timeconversion #hackerrank #solution
---------------------------------------------------------------------------------------------------------------------
Just visit the below website for code:-
Don't' Forget to Like, Share and Subscribe for future updates...
Thank you!!!!!!!!
After copying and pasting the code, still not working
Don't Worry I'm hereby to help you
Ping me on Instagram.
---------------------------------------------------------------------------------------------------------------------
Given a time in -hour AM/PM format, convert it to military (24-hour) time.
Note: -
--------------
- 12:00:00AM on a 12-hour clock is 00:00:00 on a 24-hour clock.
- 12:00:00PM on a 12-hour clock is 12:00:00 on a 24-hour clock.
Example:-
-------------------
- '12:01:00PM'
Return '12:01:00'.
- '12:01:00AM'
Return '00:01:00'.
Function Description :-
-------------------------------------
Complete the Time Conversion function in the editor below. It should return a new string representing the input time in 24 hour format.
Time Conversion has the following parameter(s):
string s: a time in 12 hour format
Returns:-
------------------
string: the time in 24 hour format
Input Format:-
------------------------
A single string that represents a time in 12-hour clock format (i.e.: hh:mm:ssAM or hh:mm:ssPM ).
#timeconversion #hackerrank #solution
---------------------------------------------------------------------------------------------------------------------
Just visit the below website for code:-
Don't' Forget to Like, Share and Subscribe for future updates...
Thank you!!!!!!!!
After copying and pasting the code, still not working
Don't Worry I'm hereby to help you
Ping me on Instagram.
Комментарии