public interface RotationEngine<T extends java.lang.Comparable> extends BaseInterface<T>
ARRAY_IS_EMPTY, DATA_TYPE_NOT_SUPPORTED_YET, DECIMAL_RADIX, DELIMITER_COMMA, ELEMENT_NOT_FOUND, LIST_IS_EMPTY, OPERATION_NOT_SUPPORTED_YET
Modifier and Type | Method and Description |
---|---|
default boolean |
isRotation(ListNode<T> A,
ListNode<T> B) |
default boolean |
isRotation(T[] A,
T[] B) |
ListNode<T> |
rotate(ListNode<T> head,
int k,
boolean clockwise) |
T[] |
rotate(T[] objects,
int k,
boolean clockwise) |
checkArray, checkIntArray, checkList