Title Rotating the Array Values to the Right by One Position
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/arrays_j_array_rotate__68bdb309f6cc3d7a9cc097f6?index=2
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 right by one position so that the value that is currently at the end of the array is moved to the front, shifting the remaining values to the right. For example, if the array is {1, 2, 3, 4, 5, 6}, the program will change it to {6, 1, 2, 3, 4, 5}.
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=2
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output