⚑ Concept first · Code second

Don't memorize DSA.
Live the story behind it.

Every question on CodeKatha begins with a story β€” a librarian, a treasure hunt, a queue outside a cinema β€” that plants the concept in your head before you write a single line of code. Then you solve real interview-style questions in a live compiler, watch your test cases pass, and let your streak grow. πŸ”₯

1000+
DSA questions (growing)
14
Topics, beginner β†’ expert
β‚Ή9
Full premium pass

The Librarian's Secret Register πŸ“š

Meera the librarian never searches shelf-by-shelf. She keeps a register: book name β†’ exact shelf number. One look, instant answer. That register, dear reader, is a hash map…

function twoSum(nums, target) { const seen = new Map(); // Meera's register for (let i = 0; i < nums.length; i++) { if (seen.has(target - nums[i])) return [seen.get(target - nums[i]), i]; seen.set(nums[i], i); } }
βœ” Test 1 Β· [2,7,11,15], 9 β†’ [0,1]
βœ” Test 2 Β· [3,2,4], 6 β†’ [1,2]
βœ” Complexity: O(n) time Β· optimal ⚑

One question. Three acts.

You never see a question cold. The concept is built in your mind first β€” by hook or by crook β€” through stories, examples and analogies. Only then do you code.

01
πŸ“–

The Story

A short, vivid tale that hides the algorithm inside everyday life. By the end, you already understand the technique β€” you just don't know its scary name yet.

02
πŸ’‘

The Concept

The story is decoded into the real concept: what it's called, when to use it, the time & space complexity, and the pattern to recognize it in interviews.

03
βš”οΈ

The Battle

A real LeetCode/CodeChef-style question with a built-in compiler. Run your code, see test cases pass live βœ…, and get your time & space complexity judged against the optimal.

πŸ”₯

Solve one a day. Keep the flame alive.

Your streak grows only when you solve at least one question that day β€” visiting isn't enough. Break the chain and the flame dies. Keep it burning and the rewards stack up:

πŸ₯‰ 30 days β†’ Monthly Master + 500 XP πŸ₯ˆ 180 days β†’ Half-Year Hero + 3000 XP πŸ₯‡ 365 days β†’ Yearly Legend + 10000 XP

Built to keep you hooked β€” on learning.

Everything in the client area is designed like a game, so the hours you'd waste scrolling go into building your interview muscle instead.

πŸ§ͺ

Live compiler in every question

JavaScript & Python. Run, see each test case pass or fail instantly, with inputs and expected outputs shown.

⏱️

Complexity checker

Your code's time & space complexity is estimated and compared with the optimal solution. O(nΒ²) when O(n) exists? You'll know.

πŸ“ˆ

Levels that unlock difficulty

Start with gentle beginner questions. As your level rises, harder questions unlock automatically.

πŸ—“οΈ

Streak heatmap

A GitHub-style calendar of your grind. Watching it fill up is dangerously addictive.

πŸ…

Badges & leaderboard

First Blood, Week Warrior, Centurion… earn them all and climb past other learners.

πŸ’¬

Story-linked hints

Stuck? Hints don't spoil β€” they point back to the story: β€œremember the librarian's register?”

πŸ‘‘

Premium Pass

Less than a cup of chai. Forever.

β‚Ή9
  • Every premium question β€” medium, hard & expert sets
  • Complete story library + concept summaries
  • Full solution explanations after solving
  • Priority on the leaderboard with the πŸ‘‘ crown
Register free, upgrade anytime

Pay via UPI β†’ upload screenshot β†’ approved by admin β†’ confirmation mail. Simple.

Your first story is waiting.

Day 1 starts the moment you register. Free questions, free stories, free streak. The flame is yours to light. πŸ”₯

Begin Chapter 1 β†’