We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
(programming) A contiguous subset of an array.
Usage notes
A subarray is to be contrasted with a subsequence. A subsequence only needs to have the same ordering as the original array, a weaker condition than contiguity.
If a string is viewed as an array of characters, then a substring is a subarray.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Picking Numbers
You are viewing a single comment's thread. Return to all comments →
subarray
English Etymology From sub- + array.
Noun subarray (plural subarrays)
(programming) A contiguous subset of an array. Usage notes A subarray is to be contrasted with a subsequence. A subsequence only needs to have the same ordering as the original array, a weaker condition than contiguity.
If a string is viewed as an array of characters, then a substring is a subarray.