Introduction

Advantages

Disadvantages

Elements

Subarray

e.g. given an array [2, 3, 6, 1, 5, 4][3, 6, 1] is a subarray while [3, 1, 5] is not a subarray

Subsequence

e.g. given an array [2, 3, 6, 1, 5, 4][3, 1, 5] is a subsequence but [3, 5, 1] is not a subsequence

Types

Static Array