Leetcode Weekly Contest 405 | Video Solutions - A to D | by Harsh Gupta | TLE Eliminators

  Рет қаралды 1,824

TLE Eliminators - by Priyansh

TLE Eliminators - by Priyansh

Күн бұрын

Here are the video solutions for problems A, B, C, D of Leetcode Weekly Contest 405. We hope this will be useful for you in up-solving this contest.
📢Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet
Solution Codes:
Problem 1: leetcode.com/contest/weekly-c...
Problem 2: leetcode.com/contest/weekly-c...
Problem 3: leetcode.com/submissions/deta...
Problem 4: leetcode.com/submissions/deta...
Be sure to check out TLE Eliminators.
Website: www.tle-eliminators.com/
Instagram: / tle_eliminators
Linkedin: / tle-eliminators
Twitter: / tle_eliminators
TLE Community Discord Server: / discord
Timestamps:-
0:00 Problem A
6:50 Problem B
18:45 Problem C
34:05 Problem D

Пікірлер: 12
@TLE_Eliminators
@TLE_Eliminators 7 күн бұрын
Please fill the feedback form: forms.gle/52XsaRWXd2P4pBqz5
@sdeBack1
@sdeBack1 7 күн бұрын
We can further optimize. Instead of storing index, we can store cost .Each time when we end at same char we store min cost
@gigachad2419
@gigachad2419 7 күн бұрын
Trie+DP fails few testcases within constraints. Was expecting Rolling Hash+DP solution.
@user-ym1nv1pw8i
@user-ym1nv1pw8i Күн бұрын
Yes
@arijoymajumdar2326
@arijoymajumdar2326 7 күн бұрын
Very helpful!
@atanunayak6637
@atanunayak6637 7 күн бұрын
Well explained!
@virujthakur9260
@virujthakur9260 7 күн бұрын
Isn't the code's complexity isn't N^2 in worst case? How does it pass the constraints?
@ronitkumarbaranwal6844
@ronitkumarbaranwal6844 7 күн бұрын
Truly helpful !!
@inspirationalshorts2689
@inspirationalshorts2689 7 күн бұрын
About question 4 their is not any another way to solve without using Trie because in my first instance it will seem familiar of recursion + memoization of pick or notPick because ultimately we have to calculate minimum cost to formed target string by using substring matching way on recursion by taking start index? Everyone only talking about using Trie to solve this question that's mean their is no another way left to solve this question.
@AMITKUMAR-sz4fg
@AMITKUMAR-sz4fg 7 күн бұрын
give a try using rolling hash
@inspirationalshorts2689
@inspirationalshorts2689 7 күн бұрын
@@AMITKUMAR-sz4fg Can you elaborate more about rolling hash to solve this problem it will be more beneficial.
@Cools74
@Cools74 2 күн бұрын
​@@inspirationalshorts2689 Refer Coding mohan channel He explained using rolling hash
Codeforces Round 956 | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
1:11:03
TLE Eliminators - by Priyansh
Рет қаралды 4,6 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 329 М.
Каха и суп
00:39
К-Media
Рет қаралды 5 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 16 МЛН
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 544 М.
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 417 М.
The Unfair Way I Got Good At Leetcode
3:50
Top SWE
Рет қаралды 14 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 606 М.
The Man Who Solved the World’s Hardest Math Problem
11:14
Newsthink
Рет қаралды 622 М.
Intel's CPUs Are Failing, ft. Wendell of Level1 Techs
23:59
Gamers Nexus
Рет қаралды 378 М.
Coding Interviews Be Like
5:31
Nicholas T.
Рет қаралды 6 МЛН
❌ Don't Run Behind 500 LEETCODE Problems ❌ Focus on QPCD
8:31
Codechef Starters 140 | Video Solutions - A to E | by Ankit Ghildiyal | TLE Eliminators
38:53
TLE Eliminators - by Priyansh
Рет қаралды 3,5 М.
8 patterns to solve 80% Leetcode problems
7:30
Sahil & Sarra
Рет қаралды 241 М.
Каха и суп
00:39
К-Media
Рет қаралды 5 МЛН