a) O(1)
b) O(n)
c) O(d)
d) O(n*d)
What will be the auxiliary space complexity of the code to rotate an array by using the reversal algorithm (d = number o
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the auxiliary space complexity of the code to rotate an array by using the reversal algorithm (d = number o
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!