• + 0 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.