TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhishek
1.2k
592
77.9k
Array rotation problem
Jan 16 2017 9:15 AM
There is an array,
a[ ]
of
n
elements and is rotated in circular right direction for
k
times.
m
in any index of an element in that array i.e.
0
<=
m
<=
n
.
then to get that
m
th
element
FORMULA is
a[m] = a[ (( m - k ) % n + n ) % n ]
What is the logic behind that formula?
Reply
Answers (
1
)
I am installed latest Xamarin Studio and Android SDK?
Unable to Code for Popup Handler on Chrome browser with C#