•  
      tasks #44033 Split the array and add the first part to the end
    #44033
    Ritish Singh (ritish31)
    2022-08-05 10:26
    2022-08-05 10:26
    Details
    Split the array and add the first part to the end
    Step 1- Define a function Split Array() which will split the array and add the first part to the end
    Step 2- Run a loop from the starting index to the index where the array has to be split
    Step 3- Inside the loop, store the first element of the array in a variable x
    Step 4- Run a loop inside the first loop from starting to the ending index and shift the elements to the left side
    Step 5- When all the elements are shifted keep the first element at the last index
    Step 6- Repeat the process for all elements which are in the first part of the array
    Step 7- Define another function to print the array
    Step 8- Specify the array and the position from where the array has to split
    Step 9- Call the function and pass the array and the position
    Step 10- Print the resultant array
    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