Time Complexity
by Anonymous
Compare every pair or build a table, then increase the number of people to see how fast the steps grow and where the two methods meet.
Ready to remix β hit the π΄ Remix button below. You'll sign up first, then this app is copied into your workspace.
About this app
Time Complexity is an interactive coding-basics lesson about finding whether two people share the same number. It compares checking every pair with building a lookup table once, then shows how the number of counted steps changes as the group grows tenfold. Guided challenges use concrete examples to introduce triangular numbers, setup costs, and the difference between quadratic and near-linear growth.
Use cases
- Students learning algorithms and JavaScript fundamentals
- Teachers demonstrating time complexity in class
- Beginners comparing brute-force and table-based approaches
- Learners practicing algorithm efficiency through guided challenges
Features
- Interactive people-count controls with plus and minus buttons
- Step-by-step or complete pair comparisons
- Table-building simulation with a fixed 20-step setup and one step per person
- Γ10 growth experiment comparing step multipliers
- Guided goals involving 4, 8, 12, and other group sizes
- Explanations of triangular-number and time-complexity patterns