Title Rotating the Array Values to the Left by Two Position
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/arrays_j_array_rotate__68bdb309f6cc3d7a9cc097f6?index=1
Platform Name PCEX
Features
Description Construct a program that has a method that receives an array of values and returns the array rotated to the left by 2 position so that the value at the front of the array goes to the second last position, the second value of the array goes to the back, and the order of the other values stays the same. For example, if the array is {1, 2, 3, 4, 5, 6}, the program will change it to {3, 4, 5, 6, 1, 2}.
Keywords
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/arrays_j_array_rotate__68bdb309f6cc3d7a9cc097f6?index=1
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output