subarray

Contiguous array portion

A subarray is a contiguous portion of an array—a sequence of elements that appear consecutively in the original, preserving their order.

If an array contains [1, 2, 3, 4], then [2, 3] is a subarray, but [1, 3] is not (that would be a subsequence).

The term appears constantly in programming and algorithm problems: Find the subarray with the maximum sum.

contiguous

contiguous

Sharing a common boundary

window · segment · range · prefix · suffix · substring · interval · block · run · streak

algorithm

merge

Combine into unity

backtracking

properties

length

Measure of extent

  • sizePhysical extent or dimensions
  • countReckon a total
  • indexAlphabetical guide to contents

bounds · elements · distinct · sorted · unsorted · duplicates · unique · frequency · density · median

sum

sum

Addition's result

aggregate · difference · product · XOR · modular

Opposites
scope/wholeness

subarrayarray

Ordered collection or display

complete set

contiguity/structure

subarraysubsequence

Ordered partial selection

random sample

Family

sub, array, arrays, arrange, arrangement, arrangements, arranged, arranging, arranger

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Rated G