If b = " " i . e . , an empty string . There is only one way to transform ( remove all characters )
if m == 0 : NEW_LINE INDENT return 1 NEW_LINE DEDENT dp = [ [ 0 ] * ( n ) for _ in range ( m ) ] NEW_LINE