The second method used in the video in which the function rotate_stl is used, we use reverse function to reverse the row but I can not understand how to use that reverse function. In the video it is used from starting point a[I] till the point a[I]+n , how the ending point of row is a[I]+n ?
I can’t understand how the row ends at a[I]+n
In the video of rotating the image in anticlock direction (2-D arrays)
hey every row is of size n. remember sort function of array its sort(a,a+n) similarly reverse(a[i],a[i]+n) reverses all rows in a loop @Vansh1410. its stl u have to pass start and end of the array ie start a[i] and end a[i]+n
i hope its clear if yes dont forget to mark it as resolved 