logo

Crowdly

Browser

Add to Chrome

Questions Bank (1455891 total)

Why does concatenating a single character onto a string take time proportional to the string's current length (not constant time)?

100%
0%
0%
0%
View this question

Insertion sort takes about 8 seconds to sort 10 000 random ints. Using its order of growth, roughly how long to sort 20 000 random ints?

0%
0%
0%
100%
View this question

n items are added to an empty list. Loop L uses a.insert(0, x) each time; loop R uses a.append(x) each time. Which loop is quadratic?

100%
0%
0%
0%
View this question

Scanning a sorted array from the front (brute-force linear search) to find a random PRESENT key uses, on average, about:

100%
0%
0%
0%
View this question

Why does the text prefer tilde (~) / order-of-growth notation over big-O for PREDICTING performance?

0%
0%
100%
0%
View this question

Compared with insertion sort, mergesort (as in merge.py) needs:

0%
100%
0%
0%
View this question

Insertion sort does the MOST work (about n²/2 compares) on which input?

100%
0%
0%
0%
View this question

Osobie z drgawkami zaleca się wkładanie w usta twardych przedmiotów

0%
100%
View this question

Prawidłowa wilgotność na stanowisku pracy z komputerem to 40 – 60 %

0%
100%
View this question

Wypadek studencki to wypadek studenta z ważną legitymacją studencką

0%
100%
View this question