0Pricing
Competitive Programming Academy · Lesson

Edit Distance Step by Step

Insert, delete, replace to transform.

What Edit Distance Measures

Edit distance is the fewest single-character edits to turn one string into another. It scores how different two words really are.

The Three Operations

You may insert, delete, or replace one character per edit. Each operation costs exactly one in the standard problem.

All lessons in this course

  1. Path Counting on a Grid
  2. Minimum Path Sum with Obstacles
  3. Longest Common Subsequence
  4. Edit Distance Step by Step
← Back to Competitive Programming Academy