Data Types
Stack
Queue
Linked List
Trees
100

Size is 2 bytes

What is the size of an Int?

100

LIFO

What is the operating principle of a stack?

100

FIFO

What is the operating principle of a queue?

100

Garbage collector

Who cleans an object that is no longer accessible?

100

Left - Root - Right

What is the order of visiting nodes using an Inorder traversal?

200

The size of the arrays is fixed, Linked Lists are Dynamic in size.

How is an array different from a LinkedList?

200

Returns a reference to the top element of the stack

What does peek() do?

200

An element with high priority is served before an element with low priority.

What is the operating principle of a priority queue?

200

Consists of n linked lists – The i th linked list has a list entry for vertex j iff the graph contains an arc from vertex i to vertex j

What is an adjacency list?

200

The inorder traversal is sorted.

How do we know if a Binary Tree is BST?

300

Check for balanced parentheses in an expression

What is one example for an application of a Stack?

300

An algorithm for traversing a graph, which starts at the a vertex and explores as far as possible along each edge before backtracking.

What is DFS?

300

O(1)

What is the time complexity of enQueue(), deQueue() operations in a queue implemented using  a circular array?

300

An object that provides a means of processing a collection of objects, one at a time.

What is an Iterator?

300

A tree in which every node other than the leaves has two children.

What is a full tree?

400

The number of entries N in table divided by the table capacity M

What is the load factor of a hash table?

400

An array of Objects called items, an int named count, and a constant int.


What are the instance variables of ArrayStack?

400

Separate queues are created for each possible value of each digit or character of the sort key

How is Radix Sort implemented?

400

An object that contains a reference to data stored in the object, and references for two other similar objects.

What is a BinaryTreeNode?

400

A binary tree in which the value of each node is greater than or equal to the value of its parent.

What is a MinHeap?

M
e
n
u