VALID PALINDROME II [PYTHON]

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

Cracking FAANG

Cracking FAANG

2 жыл бұрын

In this video we are solving Leetcode problem # 680: Valid Palindrome II. This is the follow up to the problem Valid Palindrome except we are allowed to remove at most one character in an attempt to make the string a valid palindrome.
The approach will be the same in that we try to use two pointers and check whether the characters at the indexes corresponding to those pointers match. If they do, we can continue through the string, if they do not, then we try to see if the string is a valid palindrome if we remove the character at the ith index or the jth index.

Пікірлер
PRODUCT OF TWO RUN-LENGTH ENCODED ARRAYS | PYTHON | LEETCODE # 1868
16:24
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 54 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 10 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 49 МЛН
LOWEST COMMON ANCESTOR OF A BINARY TREE III [PYTHON]
16:38
Cracking FAANG
Рет қаралды 8 М.
VALID NUMBER | LEETCODE #65 | PYTHON SOLUTION
18:18
Cracking FAANG
Рет қаралды 4,3 М.
BASIC CALCULATOR II | LEETCODE 227 | PYTHON SOLUTION
15:40
Cracking FAANG
Рет қаралды 16 М.
NESTED LIST WEIGHT SUM | LEETCODE # 339 | PYTHON BFS SOLUTION
11:00
Cracking FAANG
Рет қаралды 4,9 М.
LOWEST COMMON ANCESTOR OF A BINARY TREE I | PYTHON | LEETCODE 236
12:48
VALID PALINDROME III | LEETCODE 1216 | PYTHON MEMOIZED DFS SOLUTION
16:01
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01