|
For all you programmers out there, today I failed an interview for panicking and totally forgetting to question the value-types of the data I was working with.
i.e.
array: [["1230", "testing", ""], ["200", "testing3", ""], ["1230", "testing1", ""], ["2000", "testing", ""]]
Basically the first value is a timestamp in 2400 format. I had to sort first by the 2nd value (some word), and then sort by the first.
So I did a Python library sort with a lambda.
But I messed up one thing, I kept getting the list back in a different than expected order.
With that bug, I screwed up the rest of the interview.
The bug was... I was sorting the first values (the timestamps) as strings, not type-casting to integers.
__________________
Instagram: @ spike.grc
Quote:
Originally Posted by humfrz
It sounds to me like the delicate, metallic sounds of piston skirts slapping against the cylinder walls
|
Quote:
Originally Posted by Tcoat
Now, if it was three feet long and you were using all that leverage
|
|