Rotating Array in both side (left and right) in a efficient manner

knowledge Sharing

Friends  the above my algorithm works in 0(3n) of time complexity and O(2) of space complexity.  If possible try to optimize it.

Please give your comments.

View original post

Advertisements

About Khuram Ali

Programming... Programming and Programming...!!!

Posted on June 17, 2013, in Algorithms, Programming and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: