Back to curriculum

Week 4

Week 4: Problem Solving, Review, and Projects

Finish with PCEP review, USACO-style problem solving, and project/demo preparation.

Log in to track progress on the assigned problems.

Week 4: Problem Solving, Review, and Projects

The final week combines problem-solving strategies, PCEP review, and project/demo preparation.

Topics

  • simulation
  • sorting
  • maps and sets
  • review strategy
  • project presentation

Required Problems

  • Bus Route Check
  • Attendance Streak
  • Mentor Pairing
  • Workshop Capacity
  • Practice Minutes

Lesson completion is automatic. Students complete the week when every required problem has an accepted submission.

Required practice

Problems for this lesson

Solve all assigned problems to complete the week.

1ListsIntermediate

Bus Route Check

Given a list of route stop names and a school name, print `YES` if the school appears in the route and `NO` otherwise.

Open problem
2SimulationIntermediate

Attendance Streak

A string contains `P` for present and `A` for absent across several sessions. Find the longest consecutive run of `P`.

Open problem
3SortingIntermediate

Mentor Pairing

Given skill scores for students, sort them and print the difference between the highest and lowest score.

Open problem
4Prefix SumsIntermediate

Workshop Capacity

Given attendance counts for sessions and a range `l` to `r`, print the total attendance in that inclusive range.

Open problem
5VariablesBeginner

Practice Minutes

A student practiced for `h` hours and `m` additional minutes. Compute the total number of minutes practiced.

Open problem