Some Data Structures
MisCellaneous
Time Complexity
UNIX and Scripting
More Data Structures
100

This data structure operates using the LIFO principle.

What is a stack?

100

C is usually a compiled programming language.

What is true?

100

This UNIX utility is best suited for listing the entries of a directory.

What is ls?

200

This data structure is well-suited for performing breadth-first-search.

What is a queue?

200

This is what prevents the following code snippet from crashing.

int x = 0;

int y = 5;

if (x && y / x > 5 ) {

    return true;

}

What is short-circuit evaluation?

300

This tree traversal is well-suited for freeing allocated memory for a tree.

What is postorder traversal?

300

The following code snippet is a well-defined statement in the C language.

int x = 6;

func(x++, ++x);

What is false?

400

This data structure grants O(1) insert and O(1) lookup on average, assuming it is created with enough entries for some workload.

What is hash table?

400

This is the value of the following variable, assuming it was defined in a global scope.

int x;

What is 0?

500

This data structure is space efficient and is well-suited for representing the truth or falseness for a set of items.

What is a bit vector?

500

The following code snippet is well-defined in the C language.

int i = 0;

i = i++;

What is false?

500

This is the time complexity of looking up in a binary search tree that isn't necessarily balanced.

What is O(n)?
500

This is Brian Zhao's favorite data structure.

What is a mutex?