MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the auxiliary space complexity of the code to rotate an array by using the reversal algorithm (d = number of rotations)? |
| A. | O(1) |
| B. | O(n) |
| C. | O(d) |
| D. | O(n*d) |
| Answer» B. O(n) | |