Lesson 2: Arrays

Array is a data-structure that can be used to store many items in one place. Imagine that we have a list of items; for example, a shopping list. We don’t keep all the products on separate pages; we simply list them all together on a single page. Such a page is conceptually similar to an array. Similarly, if we plan to record air temperatures over the next 365 days, we would
not create lots of individual variables, but would instead store all the data in just one array.

Open reading material (PDF)

CyclicRotation

Rotate an array to the right by a given number of steps.

Difficulty Level: Easy

OddOccurrencesInArray

Find the value that occurs in an odd number of elements.

Difficulty Level: Easy