(Before the Interview) What you need to know Flashcards

1
Q

Linked Lists

A

Linear collection of elements, called nodes, each pointing to the next by means of a pointer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Binary Trees

A

A tree structure where each node has at most 2 children

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Stacks

A

Collection of elements where popping an item returns the last item pushed to the list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Queues

A

Collection of elements where popping an item returns the first item added to the list not yet removed (removal of entities from the terminal position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Vectors / ArrayList

A

One dimensional array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Hash Tables

A

Associative array mapping keys to values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Breadth-first search

A

Explores all neighbors in a level of a tree before moving to children (all nodes in next level)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Depth-first search

A

Explores as far as possible along each branch until backtracking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Binary Search

A

Finds target value in sorted array by recursively searching each half-interval

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Merge sort

A

Recursively divides by 2 and sorts each half-interval of array. Last step 2 halves are returned and these sorted halves are merged

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Quick Sort

A

Recursively pick a pivot, partition and sort left and right halves. Base case is of a pivot position with 0 or 1 on either side of the pivot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Tree Insert

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Bit manipulation

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Factory Design Pattern

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Memory (Stack vs Heap)

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Recursion

A

?

17
Q

Big-O Time

A

?