Skip to content · ⁨Lompat ke konten⁩

Linked lists · ⁨Daftar terhubung (Linked lists)⁩

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.
Bahasa Indonesia

Node yang terhubung oleh pointer

  • Daftar terikat adalah rantai dari struktur kecil yang disebut node, tersebar di area heap.
  • Setiap node menyimpan nilai dan pointer ke node berikutnya. Ikuti pointer untuk menjelajahi daftar.
  • Berbeda dengan array, daftar dapat bertambah satu node pada satu waktu tanpa memindahkan node lainnya.

Handout · ⁨Lembar Kerja⁩

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP