본문 바로가기

Array algorithms: max, count, search, average

English

Four classic array jobs

  • Most array work is one of four scans: find the maximum, count matches, search for a value, or take an average.
  • Each one is a single for loop over the array, with a variable that remembers something.
  • Once you know these four, most array problems are a small change to one of them.

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP