Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
CS foundations
/
CS foundations
A routine compares every pair among `n` records once. Which time bound describes its domi…
from CS foundations
beginner
1 min
A routine compares every pair among `n` records once. Which time bound describes its dominant growth?
`O(n²)`
`O(n)` because each individual comparison is constant-time
`O(2n)` because each pair contains two records
Check
Ask AI about this kata
Report an error
previous kata
Name the state a graph traversal must maintain to avoid revisiting vertices indefinitely …
Fill in
next kata
Which rule must a hash-map key implementation preserve?
Quiz
A new version is available
Reload