Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java Array slicing

Arrays.copyOfRange(myArray, startIndex, endIndex);
This takes O(n)O(n)O(n) time and O(n)O(n)O(n) space, where nnn is the number of elements in the resulting array.
Source by www.interviewcake.com #
 
PREVIOUS NEXT
Tagged: #java #Array #slicing
ADD COMMENT
Topic
Name
6+4 =