MINIMUM NUMBER OF MOVES TO MAKE PALINDROME | LEETCODE 2193 | PYTHON SOLUTION

  Рет қаралды 2,505

Cracking FAANG

Cracking FAANG

Күн бұрын

JOIN OUR DISCORD COMMUNITY: / discord
In this video we are solving a hard level Amazon interview question dealing with Leetcode's seemingly favorite string topic: Minimum Moves to Make Palindrome (Leetcode 2193).
This question is one of those that is tricky to figure out but the code is so simple and intuitive that once you see it, everything should just click and there you go.
TIMESTAMPS:
00:00 Intro
00:20 Question Prompt
00:45 Basic Example
02:25 Solution Intuition
07:49 Coding
12:25 Time/Space Complexity
13:50 Outro

Пікірлер: 11
@varunshrivastava2706
@varunshrivastava2706 Жыл бұрын
Unbelievable, I busted my ass for 2 long hours to think of a suitable algorithm yet couldn't solve it and you did it so elegantly.
@crackfaang
@crackfaang Жыл бұрын
It happens. I'd personally recommend just looking at the solution after 20 minutes and not wasting your time. Sometime when you see it, things just click and you'll always remember how to solve it
@manishparab4427
@manishparab4427 Жыл бұрын
great solution and explanation buddy.
@akakartik
@akakartik Жыл бұрын
We wait for your videos 😄😄
@neelakshisoni6118
@neelakshisoni6118 Жыл бұрын
Could u plz make a video on important topics and questions for Internship? and what else to study other than doing lc?
@Nature-pb9dh
@Nature-pb9dh Жыл бұрын
Really good explanation. Do come up with better examples next time. The noting of the edge case was great
@danielmelo6758
@danielmelo6758 Жыл бұрын
random comment!
@farzanaalaman3655
@farzanaalaman3655 Жыл бұрын
aabb abab abba 2
@nguyendatz
@nguyendatz Жыл бұрын
acturelly, you didn't prove how this algorithm that leads to the minimum moves.
@crackfaang
@crackfaang Жыл бұрын
I don’t ever prove answers. It’s not really necessary in an interview and a mathematical proof is a bit overkill to be honest
@StellasAdi18
@StellasAdi18 Жыл бұрын
Not as straight forward as you explained :)
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 11 МЛН
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 40 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,4 МЛН
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 114 М.
Зачем нужны указатели в C++?
8:14
Dima
Рет қаралды 2,2 М.
VALID PALINDROME II [PYTHON]
11:45
Cracking FAANG
Рет қаралды 1 М.
SHORTEST WAY TO FORM STRING | LEETCODE 1055 | PYTHON GREEDY SOLUTION
9:21
LARGEST PALINDROMIC NUMBER | LEETCODE 2384 | PYTHON SOLUTION
14:56
Cracking FAANG
Рет қаралды 1,4 М.
SUBARRAY SUM EQUALS K | LEETCODE 560 | PYTHON SOLUTION
16:32
Cracking FAANG
Рет қаралды 2,3 М.
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 171 М.
GamePad İle Bisiklet Yönetmek #shorts
0:26
Osman Kabadayı
Рет қаралды 513 М.
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,7 МЛН