Skip to content
playdsa
Preferences

Make yourself comfortable.

Saved on this browser. Your device’s reduced-motion preference is always respected.

Theme
Advanced settings

The Memory Pack

Learn
Play
Prove
Lesson 1 of 4

Animated idea model

array

Algorithms consume memory as well as time.

Algorithms consume memory as well as time. Space complexity describes how extra memory grows with n. The input itself is not counted when we say extra space.

Your call · An algorithm creates no new collection and keeps only one counter. What is its extra space?

Help shape PlayDSA

Something confusing, broken, or missing? Leave a quick note without leaving your lesson.

Please leave out passwords, payment details and other private information.

Page included: /

Sign in to save feedback here, or send it with your email app. Your draft stays here while you sign in.

Open email instead