•  
      tasks #44025 Array rotation
    #44025
    Ritish Singh (ritish31)
    2022-08-05 10:20
    2022-08-05 10:20
    Details
    Array rotation
    Using temp array:
    Input arr[ ] = [1, 2, 3, 4, 5, 6, 7], d = 2, n =7
    1) Store d elements in a temp array
    temp[ ] = [1, 2]
    2) Shift rest of the arr[ ]
    arr[ ] = [3, 4, 5, 6, 7, 6, 7]
    3) Store back the d elements
    arr[ ] = [3, 4, 5, 6, 7, 1, 2]
    5 - Medium
    State of Progress
    2022-05-04
    100
    2022-05-06
    Ritish Singh (ritish31)
    Rakesh Kumar Verma (rakesh.verma)
    2022-05-06
    Closed
    Attachments
    References
    References list is empty