2976. Minimum Cost to Convert String I - (Weekly Contest 377)

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025

Комментарии • 3

  • @TechTalk438
    @TechTalk438  Год назад

    Hi folks, I made a mistake during the implementation; in the if-block that says "if letter not in seen:" we need to add a line `memo[(source, letter)] = cost` in order for this code to run as fast as it can (without changing the fundamental algorithm of course). The correct code is linked on my post on LeetCode: leetcode.com/problems/minimum-cost-to-convert-string-i/solutions/4449543/beats-100-easy-for-everyone-optimized-for-readability-video-walkthrough/

  • @renaldiarlin7919
    @renaldiarlin7919 Год назад +1

    Good video brother, the contest was finished just yesterday yet you already made this awesome explanation video. Thanks!

  • @richardpro8927
    @richardpro8927 Год назад

    Loved your video keep going ❤