ppobbi-study / CS_Study_Hub

CS 스터디 레포입니다.
3 stars 6 forks source link

LinkedList와 ArrayList 차이에 대해서 설명해주세요. #73

Open SunheeYoon96 opened 5 months ago

Seobway23 commented 5 months ago

Linked List

불연속적으로 존재하는 데이터를 서로 연결한 형태로 구성되어 있습니다.

특징

Array List

자료를 연속적인 묶음으로 저장합니다.

특징

kimmainsain commented 5 months ago

답변

Array, List의 차이

ArrayList, LinkedList의 차이

SunheeYoon96 commented 5 months ago

답변

ArrayList

LinkedList

freakFlow commented 5 months ago

답변

LinkedList는 요소간의 주소를 가르키는 포인터를 이용해 리스트를 구현한 것이고, ArrayList는 배열을 이용해 구현한 리스트입니다. LinkedList의 경우 요소의 삽입과 삭제에 용이하고, ArrayList의 경우 순회에 용이하다는 차이점이 있습니다.