Skip to content · ⁨דלג לתוכן⁩
English

Nodes joined by pointers

  • A linked list is a chain of small structs called nodes, scattered around the heap.
  • Each node holds a value and a pointer to the next node. Follow the pointers to walk the list.
  • Unlike an array, a list can grow one node at a time without moving the others.
עברית

צמתים המחוברים באמצעות נורמלים

  • רשימה מקושרת היא שרשרת של מבני נתונים קטנים הנקראים צמתים, מפוזרים בכל הזיכרון.
  • כל צומח מחזיק ערך ו-נורמל לצומח הבא. עקוב אחרי הנורמלים כדי לעבור על הרשימה.
  • בניגוד למערך, רשימה יכולה להתרחב צומח אחד בכל פעם ללא העברת האחרים.

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP