Can You Detect a Palindrome? (LeetCode 125: Valid Palindrome)

  Рет қаралды 355

Code With Zi

Code With Zi

Күн бұрын

Пікірлер: 4
@pravinprince3221
@pravinprince3221 Ай бұрын
Thank you sir for the wonderful video one more question sir for the reversal of the string if question is given as not to use default methods provided by programming language what approach will you take do you manually loop through it or use recurssion to reverse the string do please let me know sir thank you
@CodeWithZi
@CodeWithZi Ай бұрын
Thank you for your question! If we’re not allowed to use built in methods for reversing the string, I would manually loop through it in reverse order.
@CrownlessX
@CrownlessX Ай бұрын
Why don't you use 2 pointers(head and tail of the list) and consider only applicable chars?
@CodeWithZi
@CodeWithZi Ай бұрын
Thanks for your comment, that approach also works!
Valid Palindrome - Leetcode 125 - Python
14:58
NeetCode
Рет қаралды 278 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 3,1 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,3 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 123 М.
Can You Detect Identical Trees? (LeetCode 101: Same tree)
6:00
Can You Generate Subsets? (LeetCode 90: Subsets II)
11:52
Code With Zi
Рет қаралды 283
Rabin Karp - Shortest Palindrome - Leetcode 214
22:07
NeetCodeIO
Рет қаралды 17 М.
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 94 М.
Replace Is Number Saves 440GB A WEEK
9:54
ThePrimeagenClips
Рет қаралды 305 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 78 М.
Valid Palindrome II - Leetcode 680 - Python
7:46
NeetCode
Рет қаралды 49 М.