I was reading some sorting algorithm here (http://www.sorting-algorithms.com/insertion-sort) and i saw following line
i = 2:n
Can someone explains what does this mean ?
Theoretically I understand that for insertion sort i = size of array. But can someone tell me if i am getting it right ?
i = 2:nwould meaniis either an integer>= 2, but in this contexts more likely: a range / array from 2 to some higher numbern.n, but I'm not 100% sure.