Ok. Yeah sorry for the trouble. I always just took the Big O for an algorithm for granted, without realizing that it also depends on the type of data you are working with. Since strings are basically char arrays, they're going to have more complexity than other data types, like integers. Thanks for showing me how I was wrong