2977. Minimum Cost to Convert String II (Leetcode Hard)

preview_player
Показать описание
Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!

#leetcode #coding #programming
Рекомендации по теме
Комментарии
Автор

Were you able to get all the costs at the same?

Algorithmist
Автор

Got AC easily after watching your solution after dozens of TLE😂 you always made it so simple Larry ❤

dinzonnyuoe
Автор

How on earth did this pass.
I tried similar approach in c++
where instead of string matching for every originals with source[index:] I traversed through the trie with all the originals pre-inserted which would be way more efficient ig.
But sadly 647 / 647 test cases passed, but took too long.

beingnikhil