CPP icon indicating copy to clipboard operation
CPP copied to clipboard

Maximum possible valid time(HH : MM) from the given digits

Open pranjalibajpai opened this issue 4 years ago • 3 comments

Given four integers - a, b, c, d. Determine the maximum possible time (HH : MM) in 24 hour format that can be formed using the given 4 integers.

Also, print -1 if no valid time is possible with the given set of integers.

Sample Input
a=2
b=6
c=3
d=2
Sample Output 
23 : 26

Sample Input
a=3
b=4
c=5
d=6
Sample Output 
-1

pranjalibajpai avatar Sep 26 '20 06:09 pranjalibajpai

Add code in the Interview Questions repo

pranjalibajpai avatar Sep 26 '20 06:09 pranjalibajpai

I would also like to work on it . I would like to work with C++ or Python. Can you please assign it to me? @pranjalibajpai @AkashGit21

kashika3101 avatar Sep 30 '20 07:09 kashika3101

ok I would like to solve this one,can you assign me this one?

Sambhu98 avatar Sep 30 '20 18:09 Sambhu98