--이전중입니다-- 24

codility - MinAvgTwoSlice ( java, javascript)

codility / traning center [MaxCounters] You are given N counters, initially set to 0, and you have two possible operations on them:increase(X) − counter X is increased by 1,max counter − all counters are set to the maximum value of any counter.A non-empty zero-indexed array A of M integers is given. This array represents consecutive operations:if A[K] = X, such that 1 ≤ X ≤ N, then operation K i..

튜토리얼3

winstorm을 위한 어플리캐이션이 완성 되었다면다른 여러 히어로들의 목록을 출력해 주는 것이 필요하다. 일단, 여러 히어로들에 대한 목록을 설정해 놓아야 한다.app 폴더 내의 app.component.ts 파일의 Hero 클래스 선언 아래에 객체들의 배열을 사용하여 HEROES를 만든다. 123456789101112const HEROES : Hero[] = [ { id: 11, name: 'Mr. Nice' }, { id: 12, name: 'Narco' }, { id: 13, name: 'Bombasto' }, { id: 14, name: 'Celeritas' }, { id: 15, name: 'Magneta' }, { id: 16, name: 'RubberMan' }, { id: 17, name..