C.W.K.
Stream
Quiz · 4 questions

🧱 Foundations

What a data structure and an algorithm actually are

Level 0Curious Beginner
0 XP0/85 lessons0/19 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01What's the most useful way to think about a 'data structure'?
Hint
The key word is *operations*. A structure is defined by what it makes cheap.
02An algorithm is best described as...
03Two functions both find the largest number in a list and always return the right answer. Function A scans once; Function B sorts the list first, then takes the last element. Why prefer A?
Hint
Both give the right answer. Look at how much *work* each does to get there.
04Dad says data structures and algorithms are 'a lens for reading the world, not just a CS topic.' What does he mean?
Hint
Think about a library, a city map, or your own daily routine.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.