24 ms·That's not what O(1) means. If your strings are short, complexity doesn't matter either way.by jacwah 7y agoThat's not what O(1) means. If your strings are short, complexity doesn't matter either way.