Examveda

What is the space complexity of the above implementation of Wagner-Fischer algorithm where "m" and "n" are the lengths of the two strings?

A. O(1)

B. O(n+m)

C. O(mn)

D. O(nlogm)

Answer: Option C


Join The Discussion

Related Questions on Dynamic Programming in Data Structures