Disheartened
So I applied for a graduate position at a large tech company and they asked me to do an online test. Now, I'm not a master coder or anything, and with it being a graduate role, I thought the idea would be to confirm I am not completely useless, which I don't believe I am.
Well, I had 3 tasks to complete in 2.5 hours, and I didn't even get past the first one!! I was completely and utterly lost. Must have tried 4 or 5 different approaches. And, well, now I do feel absolutely useless!!
The task itself was, given 6 digits, create the earliest valid time in 24-hour format, and return as a string "hr:mm:ss", or return null if it's not possible with the digits provided.
E.g.
0,0,0,7,8,9 would return 07:08:09
2,4,5,9,5,9 would return null.
Can someone please perk me up by telling me this is not a rudimentary problem? In the meantime, I am consoling myself with the fact that the role would have entailed a bitch of a commute.
I need to start using leetcode more!