Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Rotate the given Array 'a' by k steps, where k is non -negative without using extra space.

+7 votes
asked Jan 28 by Arun Patel (230 points)

1 Answer

0 votes
answered Jan 29 by Peter Minarik (69,270 points)
Please, share your code so we could give you advice on how to improve it.

Also, you did not disclose which programming language are you after. (I'll assume C here.)
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.