Imagine you are preparing for interviews. You open a problem, you stare at it, and you have no idea where to start. So you ask an AI, and it hands you a complete, working, nicely commented solution in about four seconds. You read it, it makes sense, you feel good about yourself. Two weeks later you get a variant of that same problem in a real interview and your mind goes blank, because you never actually learned it. You watched someone else learn it.

Richard Feynman had a way of describing this. If you cannot explain something in plain language, you do not understand it, you have only memorised its shape. Reading a solution gives you the shape. It feels like understanding right up until the moment you need the real thing.

So I built the opposite. asuralist.in is a DSA interview coach that refuses to give you the answer. It names the pattern, asks you one pointed question, and makes you do the thinking. You can ask for more, but you have to ask, and it makes you ask in stages.

One warning before you click. It runs on a CPU with no GPU, so replies are slow, sometimes very slow. That is not a bug, it is the economics of the project, and I will come to why.

  • The model is the least interesting part

I used qwen2.5-coder:1.5b. It is free, about a gigabyte, and runs on almost anything. It is also, to put it kindly, not very bright. It cannot be trusted to follow an instruction like “do not show the code yet”. I know this because I asked it to, politely, in several increasingly desperate ways.

The product here is not the model, it is the agent around it. What context it gets, what it is allowed to say, what happens when it disobeys, and what the user finally sees. That layer is where all the engineering is, and it is where all the value is. The model is a component you swap out.

The whole thing is a small state machine with four rungs:

user message
     |
     +-- just the problem  ->  rung 0 : name the pattern, ask one question
     +-- "I'm stuck"       ->  rung 1 : point at the next decision
     +-- "give me a hint"  ->  rung 2 : the approach in words
     +-- "show me"         ->  rung 3 : the full solution
                                 |
                            model generates
                                 |
                        did it say too much ?
                          |            |
                        yes           no
                          |            |
                  strip it out      show it
  • Do not argue with the model

My first attempt did the obvious thing. The system prompt said “do not write code”, the model wrote code anyway, so I re-prompted it, and if it disobeyed twice I refused to show anything at all.

That was worse. I measured it, and on some runs three out of four coaching turns ended in a bare refusal. A user typing “help” got stonewalled. I had built something that failed more rudely than it succeeded.

The fix was to stop arguing. The prose in a leaked reply is almost always fine, it is only the code block that is not, so now I strip the block with a regex and keep the explanation. A regex always complies, a 1.5B model does not.

That became the rule everywhere. Every time I caught myself writing a firmer instruction, I stopped and asked whether I could make the thing structurally impossible instead. Usually I could, and the code got smaller.

  • Do not ask the model things you already know

The app ships with 128 curated problems, and every one of them has a known pattern. Two pointers, sliding window, Boyer-Moore voting. That is data I already have sitting in a file.

But my prompt was asking the model to work it out from scratch. A 1.5B model recalling “Boyer-Moore voting” from its weights is a coin flip. Me looking it up in a dictionary is not. So I stopped asking, and the app now hands the pattern to the model instead. Its job shrinks from knowing to phrasing, and phrasing it can actually do.

That led to my favourite failure of the whole project. I told it the pattern was Boyer-Moore voting and told it not to explain the mechanism. It explained the mechanism. So I removed the mechanism from the prompt entirely, reasoning that it cannot leak what it was never given.

It leaked anyway. It reconstructed the candidate and counter trick from its own weights, because for a named algorithm the name is the explanation. You cannot say “Boyer-Moore” and withhold Boyer-Moore. If you already know the answer, do not make the model say it, render it yourself and give the model the one job it is good at.

  • You cannot tune what you cannot measure

For a while I was doing what everyone does with LLMs. Tweak the prompt, look at the output, decide it feels better, move on. That is not engineering, that is vibes.

So I built an eval harness. It replays scripted model responses through the real agent code and asserts on what the user actually saw, not on some internal flag. It turned “the coach feels leaky” into a number I could watch.

The first thing it told me was embarrassing. My intent router, a list of regexes deciding whether you want an explanation or a fix, scored 14 out of 20. The failures were funny once I could see them. “add error handling” was read as a debug request because “error” matched before “add”. “write a test for two sum” was read as a request to run something because “test” matched before “write”. And “my code crashes” matched nothing at all, because the regex looked for “crash” and the word was “crashes”. The patterns were not stemmed, so singular and plural went down different code paths. I would never have found that by reading output.

There are 163 tests now. Most of them exist because something surprised me.

  • Why free models will be used more

The instinct when something is hard is to reach for a bigger model, and often that is right. But it is worth noticing what a small local model actually buys you.

It is free, not cheap but free, and no per-token cost means you can retry, verify and re-run in loops that would be silly against a metered API. It is private, the code never leaves the machine, which matters for a tool people paste half finished interview answers into. And it is yours, with no rate limits and no vendor changing the model underneath you.

The catch is speed. On the box running asuralist.in the model generates at 0.85 tokens per second. A short hint takes minutes. The same model on my laptop answers in seconds, and the entire difference is one shared vCPU with no GPU. I could fix that with a credit card. I have left it alone because it makes the trade visible, this is what free actually costs and the bill is paid in latency instead of dollars.

My bet is that the gap keeps closing. Most of what people reach for a frontier model to do, classify this, rephrase that, pull these fields out, does not need one. It needs a well built agent around a modest model.

  • The unglamorous part

Getting this deployed took an embarrassing number of attempts, and I am including it because this is the part that usually gets edited out.

First the platform ignored my Dockerfile and tried to autodetect a build, and found nothing. Then the app could not reach the model service, and the error message said, in full, “request failed”. I improved the error handling, and it started saying “HTTP 502” followed by a wall of Cloudflare HTML. It turned out the edge was replacing my error responses with its own page, so every layer trying to explain the problem was having its explanation thrown away. And underneath all of it, the model service did not exist yet. I had spent hours carefully configuring a URL that pointed at nothing.

The lesson I took from that was to stop guessing and build the instrument. I added a health endpoint that reports what the app can genuinely see, which address it is dialling, whether it resolves, which models are loaded and whether they are in memory. Ten minutes of work that would have saved me two hours if I had written it first.

  • Try it

asuralist.in. Pick a problem on the left and resist the urge to press “show me the solution”. It will be slow, it is a 1.5 billion parameter model on a CPU doing its best. Give it a moment and it will ask you a better question than you expected.

Built with React, CodeMirror, Pyodide so that Python runs in your browser and nothing executes on my server, Express, and Ollama. Source is on GitHub.