Data Structures
First observe the behavior in Explore mode, then switch to Apply to test each operation with intent.
A string is a sequence of characters. In most languages, strings are implemented as arrays of characters, either mutable or immutable depending on the language.
Sequence of characters: 'H', 'e', 'l', 'l', 'o'
Reverse: Swap characters from both ends → O(n)
Click characters to inspect index and character value.
Build Your Own String
Use next/previous for backward and forward explanation, or press play for continuous animation.
Current string: Claviro
Ready|Waiting for a string operation
Time: Depends on operation|Space: O(1) auxiliary
Pseudocode
Strings act like indexed character arrays for access and traversal.
Explore mode: strings behave like indexed character arrays.
Indexed like arrays: Each character has a position
Sequence of characters: 'H', 'e', 'l', 'l', 'o'
In Apply mode, test one operation and explain its complexity before running the next.
Before clicking run, predict the next index/pointer movement and then verify it.