Data Structure Interview Questions (cont.)
Linked List is the collection of randomly stored data objects called nodes. In Linked List, each node is linked to its adjacent node through a pointer. A node contains two fields, i.e. Data Field and Link Field.
A linked list is considered both linear and non-linear data structure depending upon the situation.
The heterogeneous linked list contains different data types, so it is not possible to use ordinary pointers for this. For this purpose, you have to use a generic pointer type like void pointer because the void pointer is capable of storing a pointer to any type.
Sưu tầm: Nguyễn Thị Bảo Trang
» Tin mới nhất:
» Các tin khác: