Oh wait, you are right! I should change that considering they are both O(n)! I am still trying to understand Big O notation!! S thank you for catching that part! I'll change it to say something more accurate! :)

Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store