Compute Edit Distance

Read the full interview experience this question came from →

Quick Overview

Implement a function that returns the minimum insertions, deletions, and replacements needed to transform one lowercase string into another. Handle empty strings and inputs up to 500 characters with a polynomial-time approach.

Compute Edit Distance

Company: Amazon

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Implement a function that returns the minimum insertions, deletions, and replacements needed to transform one lowercase string into another. Handle empty strings and inputs up to 500 characters with a polynomial-time approach.

Read the full Amazon Software Engineer interview experience this question came from

|Home/Coding & Algorithms/Amazon
Amazon logo
Amazon
Jul 15, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
53
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...