Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 472 Bytes

difference-between-subpart.md

File metadata and controls

15 lines (12 loc) · 472 Bytes

Subarray

Contiguous subpart of the array.
i.e., occupy consecutive positions

Subset

Unordered subsequence.
any possible combination of the original set

Subsequence

Ordered elements of array non-contigious.
A subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements.

Substring

Subarray in string.
A substring is almost similar to a subarray