← AlgoChallenge.com

Coding · Facts & stats

Algo facts & stats

7 fact-checked facts about algorithms, each with the reason behind it. 5 more are in today's round and join this page after it closes.

Play today's round

The basics

Which sorting algorithm repeatedly swaps adjacent items that are out of order?

AnswerBubble sort

Bubble sort passes through a list swapping neighbors, so large items bubble to the end.

Which data structure follows last in, first out (LIFO)?

AnswerStack

Like a stack of plates, the last item pushed onto a stack is the first removed.

Going deeper

The word 'algorithm' comes from the name of which mathematician?

AnswerAl-Khwarizmi

It derives from the Latinized name of the 9th-century Persian mathematician Muhammad ibn Musa al-Khwarizmi.

What is the time complexity of merge sort?

AnswerO(n log n)

Merge sort splits the list in half repeatedly and merges, taking n log n time in all cases.

Which data structure follows first in, first out (FIFO)?

AnswerQueue

A queue works like a line of people: the first to join is the first served.

Expert level

What is the worst-case time complexity of quicksort?

AnswerO(n²)

Quicksort averages O(n log n) but degrades to O(n²) when pivots split the list very unevenly.

What does Euclid's algorithm compute?

AnswerThe greatest common divisor of two numbers

Euclid's algorithm repeatedly takes remainders to find the largest number dividing both inputs.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round