강의

멘토링

로드맵

Inflearn Community Q&A

syjamesjeong5334's profile image
syjamesjeong5334

asked

Data Structure Learning with Java

Generic Programming and Generics 2

add와 remove 메소드를 사용할때, size-1에 대한 질문

Written on

·

218

0

어째서 항상 데이터를 밀어내거나, 당기는 값의 범위를 size-1 까지만 설정하는건가요?

교수님 수업 잘 듣고 있습니다. 매번 감사합니다.

java

Answer 1

0

범위가 1부터 size-1까지인가요??? 1에서-1(당겼을 때)0, size-1+1(밀었을 때)... 0 ~ size의 범위를 초과하지 않기 위해서 인가요?

syjamesjeong5334's profile image
syjamesjeong5334

asked

Ask a question