Arrays
Strings
Linked Lists
Trees
Big O complexity
100

What is the first index of an array?
What data structure stores items in order using indexes?

0

100

What is a string?

A sequence of characters
100

What does each node store besides a value?

A pointer (next)


100

The top node of a tree is called this.

Root

100

O(n) means this type of time.

linear

200

What operation adds an item to the end of a list in Python?

append()

200

A string that reads the same forward and backward is called this.

Palindrome

200

What do we call the first node?

head

200

What do we call nodes with no children?

leaves

200

O(1) time complexity is called this.

Constant time

300

This problem asks you to find two numbers that add up to a target.

Two sum

300

What data structure is commonly used to validate parentheses in a string?

Stack

300

Each node in a linked list contains a value and this.

Pointer (next reference)


300

In a binary tree, how many children can a node have max?

2

300

Which grows faster: O(n) or O(1)?

o(n)

400

If you scan an array once to find the max value, what is the time complexity?

O(n)

400

What built-in method or approach is often used conceptually to reverse a string?

Two pointers / reverse method

400

What do we call the last node in a linked list when its next is null?

Tail

400

Traversal order: Root → Left → Right is called this.

Preorder traversal

400

What is the time complexity of binary search?

O(log n)

500

What technique uses two pointers starting from opposite ends of an array?

Two-pointer technique

500

What is the output?

arr = [1,2,3]
print(arr[-1])

3

500

What algorithm detects a cycle using slow and fast pointers?

Floyd’s Cycle Detection

500

In a Binary Search Tree, where do values greater than the root go?

Right

500

Which is faster as input grows: O(n) or O(log n)?

O(log n)