Skip to main content

2 docs tagged with "algorithm"

View all tags

Edit Distance (Levenshtein Distance)

This question is asked by Google. Given two strings s and t, return the minimum number of operations needed to convert s into t where a single operation consists of inserting a character, deleting a character, or replacing a character.

Longest Common Subsequence

This question is asked by Google. Given two strings, s and t, return the length of their longest subsequence.