Top "Sub-array" questions

A sub-array is a subset of an array.

In Swift, Array [String] slicing return type doesn't seem to be [String]

I'm slicing an array of strings and setting that to a [String] variable, but the type checker is complaining. Is …

ios swift sub-array
How to get a subArray from Swift 2.0

I keep trying to search for the proper way to get a sub array in Swift but I am missing …

arrays swift2 sub-array
How to properly return part of ArrayList in Java?

I have a class SomeClass with a static member myMap enter code herethat has the form HasmMap<String,ArrayList&…

java arraylist sub-array
R array manipulation

In python lists can be sliced like this x[4:-1] to get from the fourth to the last element. In …

arrays r slice sub-array
Filter a 2D numpy array

I want to have a sub array (between min and max) of a numpy 2D ndarray xy_dat = get_xydata() …

python arrays numpy filter sub-array
Find the first occurrence/starting index of the sub-array in C#

Given two arrays as parameters (x and y) and find the starting index where the first occurrence of y in …

c# arrays sub-array
Subarray from NSMutableArray

I have a NSMutableArray with many objects. Can i extract a subarray from index range 'i' to 'j' directly? Yeah …

objective-c nsmutablearray sub-array
Julia: does an Array contain a specific sub-array

In julia we can check if an array contains a value, like so: > 6 in [4,6,5] true However this returns false, …

arrays julia sub-array
Problem with Divide and Conquer Maximum Consecutive Subarray (MCS)

I want to find a nonempty, contiguous subarray for a given input array of integers, that can have duplicate values. …

java algorithm divide-and-conquer sub-array