Skip to content

Latest commit

ย 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
ย 
ย 
ย 
ย 
ย 
ย 

[baekjoon-16566] ์นด๋“œ ๊ฒŒ์ž„

image

Array vs ArrayList

ArrayList์—์„œ removeํ•˜๋Š” ์‹์œผ๋กœ ๊ตฌํ˜„ํ•œ๋‹ค๋ฉด ์ƒ๊ฐํ•ด๋ณด๋ผ. removeํ•˜๋Š”๋ฐ ๋น„์šฉ์ด ์–ผ๋งˆ๋‚˜ ๋“ค์ง€. ๋‹น์—ฐํžˆ ์‹œ๊ฐ„์ดˆ๊ณผ๊ฐ€ ๋‚ฌ๊ณ  visited ๋ฐฐ์—ด์„ ์„ ์–ธํ•ด ๊ตฌํ˜„ํ•˜๋Š” ์‹์œผ๋กœ ๋ฐ”๊พธ๋‹ˆ ์„ฑ๊ณตํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค.

image