Test your Data-structures knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.
Question 1/12Score 0
What defines a binary tree?
In this round
What defines a binary tree?
A stack is a:
A static array differs from a dynamic array in that:
What does Big O notation describe?
What is recursion?
What is the difference between "depth" and "height" in a tree?
A weighted graph differs from an unweighted graph in that:
A Set (e.g. `Set` in JS, `set` in Python) primarily supports:
What is a "hash collision"?
What is the typical time complexity of `Array.prototype.push` (or appending to a dynamic array) versus `Array.prototype.shift` (removing from the front)?
What does a doubly linked list have that a singly linked list does not?
What is the average-case time complexity of `get` and `set` in a hash table with a good hash function and reasonable load factor?