Introduction
Explore fundamental concepts of arrays and vectors used in competitive programming. Understand subarrays, subsequences, memory allocation, and performance implications of array operations to enhance your problem-solving skills in contests.
Arrays
Arrays are an integral part of many advanced algorithms and data structures. Many of them will require you to know how to perform operations, how to perform optimizations, and what the limitations are.
We’ll go over some commonly used terms and their meaning.
Subarray
A subarray is a contiguous part of the array. I’ll be using this notation to denote subarray . This represents a subarray of the array containing all the elements from to index, both inclusive. For example:
...