Palindrome array | Q34 | Love Babbar DSA Sheet

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

Yogesh & Shailesh (CodeLibrary)

Yogesh & Shailesh (CodeLibrary)

Күн бұрын

Пікірлер: 10
@dileepnaik7462
@dileepnaik7462 3 жыл бұрын
this is not the 34th problem, This is the easy one. In actual, the question asks for Minimum no. of operations required to make an array palindrome. Its not asking whether the array is palindrome or not :D
@mahipalsingh-yo4jt
@mahipalsingh-yo4jt 4 жыл бұрын
the que should be no of merge operations to make array palindrome. This easy cannot be included in the list
@pawankumarpandit1822
@pawankumarpandit1822 Жыл бұрын
what a amazing solution bhaiya
@prashujain4844
@prashujain4844 2 жыл бұрын
thanks you teach amazing bro ! keep it up. 😍
@chetan4013
@chetan4013 3 жыл бұрын
First video and subscribed
@VISHALSHARMA-mu9kl
@VISHALSHARMA-mu9kl 3 жыл бұрын
Nice Vedio 🔥🔥🔥🔥🔥🔥🔥🔥
@pramitigupta2399
@pramitigupta2399 3 жыл бұрын
i wrote the same code but instead of != and returning 0, i used == and returned 1. why is my code showing 1 as output for both the arrays.
@anjalikumari129
@anjalikumari129 9 ай бұрын
Same problem
@yashodraj2979
@yashodraj2979 2 жыл бұрын
your code is wrong ! As the for loop iterates everytime the ans value is reset to 0 and everytime ans*10 value is zero so it's just printing the reminder value which is same as the array value so for every input it will just print true / 1 So Please post the correct code which has logic instead of just printing output value.
@CodeLibrary
@CodeLibrary 2 жыл бұрын
I guess you have not understood the problem properly, basically ans is updated everything inside while loop. And we are reseting to 0 for each iteration of for Loop, because we have to check for every element of the array. As ans is becoming 0 for each for Loop iteration so in first iteration of while loop we will get the reminder and in remaining iteration of while loop you will get some values... Think once again ✌️
C Program to check if an Array is Palindrome or not
10:45
Tarun Sir
Рет қаралды 906
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
java program to check that an array is palindrome or not
10:52
Tarun Sir
Рет қаралды 2,4 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,5 МЛН
How I Mastered Data Structures and Algorithms in 8 Weeks
15:46
Aman Manazir
Рет қаралды 152 М.
Guess The Egyptian
34:57
Dose of Emirates
Рет қаралды 438 М.
What's Your ENGLISH LEVEL? Take This Test!
21:31
Brian Wiles
Рет қаралды 3,9 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 766 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 1 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН