Other Data Structures Concepts Flashcards

1
Q

Python lambda function

A

Ex: x = lambda a: a + 10
Print(x(5))

Result: 15

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

Python assert

A

If condition returns true, nothing happens. Otherwise assertion error is raised

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

Array

A

Indexed list of data elements

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

Linked list

A

Data scattered through different cells. List contains reference to next node

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

Bubble sort

A

Sorts adjacent data one at a time

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

Quicksort

A

Uses pivots, pointers moving in opposite directions

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

Quickselect

A

Quicksort, but keeps dividing the partition into 2

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