Given two strings like 02:03:45
and 10:04:20
which represents hh:mm:ss
Is there any efficient way to determine which is lesser and which is more?
My thoughts:
I thought of splitting them by :
and then checking. But I was wondering if
there is a neat way to do it