Skip to content
Katabench
Try free

Online C# practice, graded beyond correct

C# coding challenges that grade what production cares about

Write C# in the browser and get specific feedback on more than output. Katabench measures time and memory, captures database plans, checks code structure, and runs adversarial tests across 520 focused exercises.

No signup required for your first kata. Nothing to install.

The Katabench workspace on the Two Sum kata, after submitting a double-loop C# solution. The Tests tab shows the verdict Failed: performance budget, with 4 of 5 tests passed and a hidden 200k test that timed out against a 300 ms limit.
The workspace after a real Submit on Two Sum: the double loop passes the samples and times out on the hidden large input.

Advanced C# exercises

Practice the parts of engineering that simple kata miss

The catalog starts with C# algorithm problems and keeps going into the work that fills an actual .NET codebase. Pick one track for focused reps, browse every C# practice problem, or follow a guided Learning Path through a deliberate sequence.

130 challenges · all free

Algorithms and performance

Solve familiar algorithm problems, then face inputs large enough to expose the wrong complexity and allocation budgets that punish needless copying.

Start free: Two Sum →

Want an ordered data-access progression? Start with the LINQ exercises. For a broader sequence across tracks, follow a guided C# Learning Path.

Free C# practice problems

Start with a problem you can open right now

Every algorithm problem is on the Free plan. Each page shows the brief and the starter code before you open the editor.

Two guides explain why the grader looks past correct output: where Big-O bites in production and why a green checkmark is incomplete. The allocation tax in C# covers what the memory numbers mean.

The feedback loop

Every submission answers a better question

Not only "did it pass?" but "what did the code cost, and would this solution survive the constraints that expose weak engineering?"

Correctness

Visible examples help you iterate. Hidden tests cover edge cases and larger inputs without handing you the answer.

Performance and memory

On algorithm and database katas, every test reports server-measured time and allocated bytes. Some challenges enforce hard budgets for both.

Production quality

Specialized tracks grade query plans, code structure, dependency rules, security payloads, or the strength of the tests you wrote.

Write

C# in a full editor, right in your browser. Run the samples before you submit.

Screen

Every submission is screened before it runs. Code that reaches for known-dangerous APIs is rejected outright.

Compile

Built server-side with the same compiler you use locally, full diagnostics on errors.

Run, sealed

Executed in a disposable, isolated sandbox. One per submission.

Measure & grade

Time, memory, and correctness, measured on the server, where they can't be faked.

Read how grading works or see how each submission runs inside an isolated server-side sandbox.

Who this is for

C# practice for developers past the syntax stage

You want production instincts

You know how to make code compile. Now you want to recognize an accidental O(n²), see the SQL behind LINQ, refactor without changing behavior, and close a security hole for the right reason.

You want deliberate reps

Each exercise isolates one skill, returns immediate evidence, and gives you another attempt. Use open practice for variety or Learning Paths when you want the next challenge chosen for you.

C# coding challenge FAQ

Before you start

Can I solve the C# coding challenges online?

Yes. The editor, compiler, tests, and results all run from your browser. Your code executes in a disposable server-side sandbox, so there is no SDK or local setup required.

Are these C# exercises for beginners or experienced developers?

Katabench is built primarily for working developers who already know C# syntax and want deeper practice in performance, data access, refactoring, architecture, testing, and security. Challenges range from Easy to Hard.

Are the C# challenges free?

Many are. The Free plan includes the full algorithm catalog, every Test Writing and Design Principles exercise, free previews in the database, refactoring, architecture, and secure coding tracks, the guided Katabench Tour, and 10 graded submissions a day. Pro unlocks the rest of those four tracks and every Learning Path, with unlimited submissions under fair use.

What makes these different from interview coding problems?

Correct output is only the starting point. Depending on the track, a solution may also need to meet a time or allocation budget, use the intended database plan, satisfy architecture rules, or block real attack payloads.

Do the C# practice problems include solutions?

Yes. After you attempt a problem you can reveal a correct reference solution, study it, then reset the editor and solve it again from memory. Revealing needs an account, and daily reveal limits depend on your plan.

Find out what your green checkmark missed

Open a C# challenge, run the samples, then submit against the production-grade checks. Your first kata needs no account.

Try a C# challenge free