4.5 Implementing Array Algorithms
- Develop code for standard and original algorithms for a particular context or specification that involves arrays and determine the result of these algorithms
Assignment
- All vocabulary
- All 4.5 activities
- 4.20 Arrays Code Practice
Straight from the APโs course guide, here are the array-related algorithms you should know how to implement:
- determine a minimum or maximum value
- compute a sum or average
- determine if at least one element has a particular property
- determine if all elements have a particular property
- determine the number of elements having a particular property
- access all consecutive pairs of elements
- determine the presence or absence of duplicate elements
- shift or rotate elements left or right
- reverse the order of the elements
There are exercises for each of these, so donโt let me keep you.