LeetCode Basics
UMPIRE
Big O
Arrays & Hash Maps
Sets, Lists, Stacks & Queues
100

How many LeetCode problems typically appear in a technical interview?

1-3

100

What is the first step of the UMPIRE method?

Understand

100

What does Big O notation describe?

How the runtime of code scales with input size

100

Are arrays ordered or unordered?

Ordered

100

Can a set contain duplicate values?

No

200

What is LeetCode mainly used for?

Practicing coding problems for technical interviews

200

What is the "P" in UMPIRE?

Plan

200

What is the Big O of printing a single statement?

O(1)

200

How do you access elements in an array?

By their index/number

200

Are sets ordered or unordered?

Unordered

300

What is a technical interview assessing?

Technical knowledge, especially data structures and algorithms

300

What is the number one question we should ask during the Plan step of UMPIRE?

What is the problem we are trying to solve?

300

What is the Big O of a loop inside of another loop?

O(N^2)

300

What data structure is like a notebook with words and meanings?

Hash Map/Dictionary

300

Is a stack First In First Out (FIFO) or Last In First Out (LIFO)?

First In First Out (FIFO)

400

True or False: LeetCode problems always have clearly defined goals?

True

400

What should you create in the "Plan" step?

Visualizations and pseudocode

400

In Big O, are we concerned with exact runtime or the trend?

The trend

400

Which is faster for looking up a value: searching an array or using a hash map (on average)?

Hash map

400

How do you know you've reached the end of linked list?

You reach a NULL value

500

Besides specific problems which a clear goal and example input and outputs, what is the last vital part of a leetcode problem?

Constraints

500

In UMPIRE, what should you use to understand the interviewer's question?

Test cases and questions about the problem

500

If a code's runtime increases directly with the input size, what's its Big O?

O(n)

500

What data structure will you use most frequently when doing leetcode?

Hashmaps!!!

500

What are sets really good for?

Checking membership

M
e
n
u