Skip to content · ⁨본문 바로가기⁩

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.
한국어

네 가지 고전적인 배열 작업

  • 대부분의 배열 작업은 다음 네 가지 스캔 중 하나입니다: 최대값 찾기, 일치 개수 세기, 값 찾기(검색), 또는 평균 계산.
  • 각각은 배열 전체를 순회하는 단일 for 루프이며, 무언가를 기억하는 변수가 포함됩니다.
  • 이 네 가지를 알면, 대부분의 배열 문제는 이 중 하나를 조금 수정하여 해결할 수 있습니다.

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP