Algorithms traced line by line until they click.
Recursion, sorting and Big-O make sense once you trace them by hand. The tutor walks through the code with you call by call, showing the state at each step on the whiteboard.
Free AI computer science tutor, by voice and chat. No card needed.
A recursive function calls itself on a smaller version of the same problem, until it hits a base case that stops the recursion.
function factorial(n):
if n == 0: return 1 # base case
return n * factorial(n-1) # recursive case
Tracing factorial(4)
- factorial(4) = 4 × factorial(3)
- factorial(3) = 3 × factorial(2)
- factorial(2) = 2 × factorial(1)
- factorial(1) = 1 × factorial(0)
- factorial(0) = 1 ← base case hit, now it unwinds: 1×1×2×3×4 = 24
The two things every recursive function needs: a base case that stops it, and a recursive case that makes real progress toward that base case.
How the computer science tutor helps
Call-by-call traces
Each recursive call and return written out, so you can see the stack build and unwind.
Complexity explained
Why an algorithm is O(n log n) shown by counting the work, not just stated.
Explains your code
Paste your code and it explains what each part does and where a bug is likely.
Computer Science topics it covers
- Recursion
- Sorting and searching
- Big-O complexity
- Arrays, lists and hash maps
- Trees and graphs
- Dynamic programming
- Object-oriented design
- Debugging your code
Not on the list? Ask anyway: it covers any computer science topic, and on Plus it answers from your own uploaded course notes.
How a session works
- 1.
Ask out loud or type
Press Start talking and talk like you would to a tutor, or type your question. You can interrupt it any time.
- 2.
Watch it on the whiteboard
The working appears one step at a time. Say "yes" to move on, or ask for a step to be explained another way.
- 3.
Check you've got it
It ends with a quick question to check, and remembers what you found hard for next time.
Questions about the AI computer science tutor
Can I talk to it out loud?
Yes. Press Start talking and just talk, like a call with a tutor. You can interrupt it mid-sentence, and it puts the working on a whiteboard while it explains. Free accounts get 10 voice minutes a month, with no card needed.
Which programming languages does it know?
Python, Java, C, C++, JavaScript and more. Tell it the language your course uses.
Will it write my assignment for me?
It's built to teach: it explains concepts and helps you debug your own code, so you understand what you hand in.
Try the AI computer science tutor free
10 voice minutes and 20 messages a month on the free plan. No card needed.