4 ms·I have a shorter algorithm. 1) Don't.by dogfoods 6y agoI have a shorter algorithm. 1) Don't.boring_twenties 6y agoO(1), I like it.