Week 4
Week 4: Problem Solving, Review, and Projects
Finish with PCEP review, USACO-style problem solving, and project/demo preparation.
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.
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.
Attendance Streak
A string contains `P` for present and `A` for absent across several sessions. Find the longest consecutive run of `P`.
Mentor Pairing
Given skill scores for students, sort them and print the difference between the highest and lowest score.
Workshop Capacity
Given attendance counts for sessions and a range `l` to `r`, print the total attendance in that inclusive range.
Practice Minutes
A student practiced for `h` hours and `m` additional minutes. Compute the total number of minutes practiced.