Тёмный

3213. Construct String with Minimum Cost (Leetcode Hard) 

Programming Live with Larry
Подписаться 32 тыс.
Просмотров 686
50% 1

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!
Problem: leetcode.com/problems/constru...
Twitch: / larryny
Discord: / discord
Instagram: / larrysomewhere
#leetcode #coding #programming

Наука

Опубликовано:

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@Algorithmist
@Algorithmist 19 дней назад
Were you able to get the string here?
@himanshuvohra01
@himanshuvohra01 19 дней назад
yes..was able to solve all 4 in 54 mins. Seeing improvement and that's good sign.
@user-ub2ol5ou7e
@user-ub2ol5ou7e 19 дней назад
its feels good seeing you solve and explain at same time ...keep it up
@ShubhamGhuleCode
@ShubhamGhuleCode 19 дней назад
I tried this question for almost 50mins but got tle on some test cases...I was using memoization using maps
@sagnikbiswas3268
@sagnikbiswas3268 19 дней назад
Slick DP
@anmeluz
@anmeluz 18 дней назад
What is the 8 pointer prereq problem people are talking about?
@Algorithmist
@Algorithmist 18 дней назад
Variations of this problem exists on Leetcode, this one is a funky one
@anmeluz
@anmeluz 18 дней назад
@@Algorithmist My bad, I was thinking that '8 pointer' was a specific DP technique. I realize now the problem is worth 8 points which is why people are saying that.
@RedrixClaymore
@RedrixClaymore 19 дней назад
Isn't it still O(N^2) from the DP part?
@Algorithmist
@Algorithmist 18 дней назад
It is, this problem is full of issues
@user-ih9tu1kn7i
@user-ih9tu1kn7i 10 дней назад
I posted solution with N*SQRT(N) with KMP + Trie + DP, but people says Aho-Corasick need to be used.
@julianelmasry9556
@julianelmasry9556 15 дней назад
lost on the TC
@rafeeqm
@rafeeqm 8 дней назад
TLE
@lesliechiu1437
@lesliechiu1437 19 дней назад
Useless
@proofhundred986
@proofhundred986 19 дней назад
wtf u mean lol ?
Далее
Она Может Остановить Дождь 😱
00:20
The LeetCode Fallacy
6:08
Просмотров 451 тыс.
WHY did this C++ code FAIL?
38:10
Просмотров 231 тыс.
Programming Languages I used at Google (C++ rant)
6:14
How I would learn Leetcode if I could start over
18:03
Просмотров 366 тыс.
8 patterns to solve 80% Leetcode problems
7:30
Просмотров 267 тыс.
iPhone 15 Pro в реальной жизни
24:07
Просмотров 440 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 15 млн