Queues
Maps
Problems
Random trivia
100
True or false: A queue in c++ mimics a queue in real life

True

100

A map in c++ is the same as a _____ in Python

Dictionary


100
True or false: you need to use a for loop for the question "sumint" (adding two integers together)

false

100
Chemical symbol for gold

Au

200
name any queue command from c++ (sorry python people)

Push, Front, Back, Pop, Size, Empty

200

What is linked to the 'value' in a c++ map?

A Key

200
True or false: inputting for an array requires a for loop

True

200

What is the longest river in the world?

Nile River

300
What structure/sequence does a queue follow?

First In First out

300

What data type is the Key and the Value stored in?

A pair

300

A person wants to search for a value in a list of numbers. What is the fastest way to do this?

Binary Search

300

A Zorse is....

A hybrid between a zebra and a horse

400

What is the EXACT syntax to making a queue in c++ or python?

c++: queue<data_type> queue_name;

python: (just a normal list) var_name = []

400

What is the command for finding a value in a map?

map.find()

400

What are the 2 ways to solve the problem 'anagram'?

1. Use a map

2. Sort the list

400

Programmer Grace Hopper invented the famous programming term... 

bug

500

What is the time complexity for inserting into a queue? (Think: how many for loops will it take?)

O(1) (constant time, no for loops you are just inserting in the back)

500

What is the function to add a key and a value into a map?

make_pair(key, value)

500

A person wants to make a to-do list of all their homework tasks. However, they want to do all their tasks in order. What is the best data type to use for this to do list?

Queue

500

In which sport can a player score a "hat trick"?

Soccer/Football