Please enable JavaScript to use CodeHS

New Jersey Computer Science

Basic Data Structures

Students are introduced to basic data structures that make storing and accessing data easier.

Lessons

6.1 Intro to Lists/Arrays

  • Intro to Lists/Arrays
  • Intro to Lists/Arrays Quiz
  • Making an Array
  • List of Places to Travel
  • List of Prime Numbers
  • +1 more

6.2 Indexing Into an Array

  • Indexing Into an Array
  • Indexing into an Array Quiz
  • Array Indexing Practice
  • Top Movies
  • Indexing Badge

6.3 Adding/Removing From an Array

  • Adding/Removing From an Array
  • Adding/Removing from an Array Quiz
  • Add/Remove From Array
  • Empty Array (Push/Pop)

6.4 Array Length and Looping Through Arrays

  • Array Length and Looping Through Arrays
  • Array Length and Looping Through Arrays Quiz
  • Print Shopping List
  • Print First Five Items
  • Sum Array
  • +8 more

6.5 Iterating Over an Array

  • Examples: Iterating Over an Array
  • Iterating Over an Array Quiz
  • Coin Flips
  • Many Crazy Balls
  • Coin Flip Fun: Number of Heads and Tails
  • +5 more

6.6 Finding an Element in a List

  • Finding an Element in a List
  • Finding an Element in a List Quiz
  • Array indexOf
  • Who is in Line?
  • Algorithm Efficiency

6.7 Removing an Element From an Array

  • Removing an Element From an Array
  • Removing an Element from an Array Quiz
  • Splice and Remove
  • Remove From Line
  • AP Practice: List Procedures

6.8 Simulation

  • Simulation
  • Gravity Simulation
  • Conway's Game of Life
  • Simulating a Coin Flip
  • Wolf Sheep Predation Simulation
  • +1 more

6.9 Basic Data Structures Quiz

  • Basic Data Structures Quiz

Courses that include this module