
Tom B. answered 08/02/19
I'm here to help!
So O(n2) would indicate that you are doing a set of operations on a set of operations- this commonly happens when you perform a for loop within a for loop. For example, if you have a 2D array with 5 rows and 5 columns and you use two for loops to scan through them to find a certain element, the number of operations you perform in the worst case is O(n2). n in this case is the length of the rows and columns so 5, and you go through each row 5 times and each column 5 times leading to a total of 25 checks which is n2 since 52=25.