Two-dimensional Dynamic Programming
141 / 170Two-dimensional Dynamic ProgrammingLesson 6 of 11About 47 min
When the third quantity you thought you needed is implied by the other two.
Both sources start with the same character, so a walk that always prefers the first source has to guess. Type the two lines it prints.
first, second, result = "ab", "aab", "aaabb"[:4] print("result to build:", result)print("both sources start with:", first[0], second[0], "-> the first step is a guess")Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.