We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
hey hi, pyuish like you my intend was to get that required index as some function of givenIndex ,k and n which didn't generalize so like (i = f(m,k,n) ) then I our ans would be just, a[i] so my question is how did you figure that out? is there some mathematical concept behind it which I'm not aware of.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
hey hi, pyuish like you my intend was to get that required index as some function of givenIndex ,k and n which didn't generalize so like (i = f(m,k,n) ) then I our ans would be just, a[i] so my question is how did you figure that out? is there some mathematical concept behind it which I'm not aware of.