📜 WAYPOINT LESSON
Checkpoint — Prefix Sums
⭐ beginner⏳ 15 min read📍 Lesson 24 of 281
Pass the graded problem to finish the prefix-sums module.
Checkpoint — mảng cộng dồn. Pass the graded challenge below to complete the module. It combines everything: a divisibility pre-check, prefix counting from both directions, and the non-empty-parts boundary conditions. Solve it on paper first: what must P[i], P[j], and the total satisfy for cuts (i, j) to be valid?
Điểm kiểm tra — mảng cộng dồn. Pass bài chấm bên dưới để hoàn thành module. Bài gộp mọi nội dung: kiểm tra chia hết trước, đếm cộng dồn hai chiều, và điều kiện biên phần khác rỗng. Giải trên giấy trước: P[i], P[j] và tổng phải thỏa gì để cặp cắt (i, j) hợp lệ?