In a singly linked list, what does the next pointer of the last node contain?
- AThe address of the first node
- BThe address of the previous node
- CThe number of nodes in the list
- DNull (no node)
In a singly linked list, what does the next pointer of the last node contain?
How are the elements of an array stored in memory?
In a hash table, what is a collision?
Which data structure is used to check whether the brackets in "{[()]}" are balanced?
An application needs fast lookups and also needs to list keys in sorted order and answer range queries. Which structure fits best?
A binary tree has root 1 with left child 2 and right child 3; node 2 has children 4 (left) and 5 (right). What is the preorder traversal?
Under simple uniform hashing, what is the expected time of a search in a hash table with chaining, n keys and m buckets?
What guarantee do the red-black tree rules give about the height of a tree with n keys?
Full step-by-step solutions: practise this topic on examproblems.com.