Тёмный

Lecture 50: Check Palindrome in Linked List || C++ Placement Course 

CodeHelp - by Babbar
Подписаться 626 тыс.
Просмотров 145 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 234   
@shikharverma5824
@shikharverma5824 2 года назад
ik you u are observing a constant decline in views,but its just because we are left behind and your content is amazing
@rishav144
@rishav144 2 года назад
exactly
@avibirla9863
@avibirla9863 2 года назад
Exactly even I was behind ..I just cope up watching 2 videos a day at 1.5x-1.75x speed !!!!!!
@human75788
@human75788 2 года назад
My semester is over, I couldn't watch your videos for 10 days... now I can concentrate.❤ as always. With you all the way!
@arjunrai8126
@arjunrai8126 2 года назад
Which semester bro
@arpitrajput6424
@arpitrajput6424 2 года назад
I've learnt so many things till now from this series, so be consistent ❤️❤️❤️❤️
@utkarshsingh1457
@utkarshsingh1457 2 года назад
Another milestone of 50 Videos!!!... enjoying a lot, thanks!
@tjstar390
@tjstar390 2 года назад
both approaches were very easy to understand by your superb explaining skills
@RohitRana-tz2lr
@RohitRana-tz2lr 2 года назад
attendance marked bhaiya... Consistently watching your videos and making myself better in dsa daily...just because of you
@Ayush_.
@Ayush_. 2 года назад
Successfully completed 50 lectures of DSA busted 🔥🔥 50 videos of Quality Content 🔥🙌thank u so much Love bhaiya for this amazing course 🔥Consistency+++ #BelieveInBabbar ❤️ plz make a videos on *"5 Month Internship Strategy Series with DSA busted course"* as resource for 1st/2nd year students , intership ki party dene ka mauka de do 😁👌
@DuraKura
@DuraKura 2 года назад
A slight mistake in the solution. If you are considering to return the linked list in its original form (i.e. by reverting the reverse operation), you should also reverse it before you return false.
@PrashantPatil-wx8wz
@PrashantPatil-wx8wz 2 года назад
Merge two sorted linked list wala question video dekh ne ke bad bina dekhe code kia aur error free chal bhi gaya🤩😊
@259_parthpatidar9
@259_parthpatidar9 2 года назад
phle me apke sath tha pace me but internship lgne k bad piche hogya hu but koi nhi har nhi manunga abhi yaha tk hu, aur khud se solve horhe he bhaiya questions apke btane se phle it is only because of you.🥰
@sairajrajput4857
@sairajrajput4857 Год назад
I am watching this playlist, and up to this video, I am not getting bored.
@yogeshsharma24
@yogeshsharma24 2 года назад
Mark my attendance bhaiyaa 💯💯💯💯💯 Best DSA series on RU-vid with best consistency and with bhaiyaa
@venkateshpk7822
@venkateshpk7822 7 месяцев назад
Bhaiya in 2024 also this is the best course as of now I'm preparing from last 2 months your explanations and approaches are just mind blowing
@sounaksaha1455
@sounaksaha1455 2 года назад
Half Century maar di bhaiya... Century aate waqt sabhi champ baan jayenge sirf yehi asha rakhte hai...... Lots of love bhaiya
@hasanrants
@hasanrants 3 месяца назад
50 lectures completed on 10th June 2024, so far so good.
@itzheavem4451
@itzheavem4451 2 года назад
was waiting for the video keep up the flow i really appreciate your hardwork and time that u r putting to make this course well done #believeinbabbar
@saswatighosh3162
@saswatighosh3162 2 года назад
:) :) U teach so well , I wish on day I be procoder as you!!
@ujjwalpratap8729
@ujjwalpratap8729 2 года назад
aab to mai bhi khud se, bina hint k question lagane lag gaya hu sir , THANK you for this course sir
@anuragraut5101
@anuragraut5101 2 года назад
Maine to leetcode ke linked list ke question bhar bhar ke solve kiye, solved this questions earlier
@suyashjain3223
@suyashjain3223 Год назад
Finally Half Century of Lectures is Done🤟🧑‍💻. Thanku Love Bhaiyaa❤❤❤
@sohammaji5461
@sohammaji5461 2 года назад
oh ho bhaiya half century kar dia ap ne 😄😄😄
@varunmish
@varunmish 2 года назад
Love bhaiya one request please attach questions of different difficulty as a home work sheet in the description for every video! So that we don't have to visit 100s of sites. To do that
@aravchauhan9186
@aravchauhan9186 Год назад
i am just thankful for this series as it has helped me a lot to think diff. approaches in diff. questions. thanks a lot love bhai. appreciate the quality content.
@anshumansharma1069
@anshumansharma1069 Год назад
Appreciate your hard work bhaiyya❤❤
@suvigyabasnotra7378
@suvigyabasnotra7378 2 года назад
A question about the code at 18:02 : Line 64 is sending 'temp' to the reverse function at line 45 which is accepting 'head'. So does that mean that the head written there only serve as a template for the reverse function to accept a input of type 'Node* pointer'...? In other words, can we send 'temp' which is a Node* pointer to a function taking in 'head' as input...? Is it still accepting temp only in the input...?
@ShivamKumar-hh9pg
@ShivamKumar-hh9pg 2 года назад
Yes we can send any pointer to the function accepting input of type Node which is treated as a head or starting node in that function.
@meetsojitra-b4i
@meetsojitra-b4i 7 месяцев назад
Question me ye vale test case [1,2] ya fir [1,1,2,1] chala do nahi hoga wrong ans ayga sir. or koi bhi 4 length vali list jo palindrome nahi he vo chalake dekho nahi hoga.
@laksheybanga8106
@laksheybanga8106 2 года назад
Bhaiyaaaa i m your biggest fan maan 😭🥺
@akankshapandey8316
@akankshapandey8316 2 года назад
both approaches were very easy to understand🙏
@KACodes
@KACodes 2 года назад
Consistency or content quality dono zabardast hai bhaiya 🔥🔥🔥
@anuptewary3016
@anuptewary3016 2 года назад
Present bhaiya with lot's of fire bhaiya aap ka saath saath video dekh kar khtam kar rahe haa hum v consistent dekh rahe haa love you 300❤️
@iEntertainmentFunShorts
@iEntertainmentFunShorts 2 года назад
Completed bhaiya 🙂 Ps: I'll also try to solve it using stack I feel ki woh usse ho jana chaiyei. O(n/2) space m
@rachit_joshi
@rachit_joshi 6 месяцев назад
Thank You So Much BHRATA SHREE !!!!
@Ayush_.
@Ayush_. 2 года назад
*5 Month Internship Strategy Series laaO bhaiya with DSA busted course as resource* for 2nd year students
@be_happy8411
@be_happy8411 2 года назад
Hnji khtm bhaiya, yeh question kr rkha tha pehle isliye jyada time nhi lgna, bss ek baar approaches se go through kr liya👍
@anshulsingh1265
@anshulsingh1265 2 года назад
done bhaiya...thoda sa late dekha but dekh liya... #Day51
@debashishpatel4115
@debashishpatel4115 2 года назад
What a consistency 😀...
@abhinav4955
@abhinav4955 2 года назад
Ur videos are really helpful ❤️❤️. Pls never stop inspiring us🙏🙏
@UECAshutoshKumar
@UECAshutoshKumar Год назад
Thank you
@brijkishorsoni2756
@brijkishorsoni2756 Год назад
Thank you so much bhaiya i have gotten job with the help of your DSA placement serise
@ashutoshkr99
@ashutoshkr99 2 года назад
Consistency level 🔥🔥
@yadneshrane1736
@yadneshrane1736 2 года назад
Great Lecture
@chandrakant9301
@chandrakant9301 29 дней назад
step 4 should be before `return false`, not before `return true`. if the list is palindrome then we don't need to change is back to original, but if it's not palindrome then we need to repeat step 2.
@harshranjan8823
@harshranjan8823 Год назад
congrats for 400k subs
@ShivamSharma-el7ui
@ShivamSharma-el7ui Год назад
garda udda diyeh hai bhaiya ji aap toh #HarHarMahadev
@arjunjaygadi2704
@arjunjaygadi2704 Год назад
Line 34: Char 5: error: unknown type name 'Node' Node* getMid(Node* head ) { ^ on second appoch
@RohitSingh-hc8yi
@RohitSingh-hc8yi Год назад
Thankyou for the quality content
@tanujasharma1262
@tanujasharma1262 9 месяцев назад
1/3rd course complete , I am so happpy
@suranjandhara7535
@suranjandhara7535 2 года назад
New video aa gya.... ❤️❤️❤️❤️❤️🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ Thanku bhaiya ....... For providing amazing 😍😍😍😍😍😍 content
@funwithrayhan9579
@funwithrayhan9579 Год назад
masterclass bhai.. love from Bangladesh
@anuragpatel7787
@anuragpatel7787 7 месяцев назад
hnji this is anurag patel Lec 50 completed successfully ✅
@premaggarwal7963
@premaggarwal7963 2 года назад
use of inbuilt stack also gives solution involving S.C. = O(n)... which approach is better: array one or stack one??
@hiteshsherwani3802
@hiteshsherwani3802 2 года назад
both are bad because they are not optimal
@fgh427
@fgh427 2 года назад
Half century completed... 💪💪💪💪💪
@siddheshsurve6608
@siddheshsurve6608 Год назад
Best explanation
@DoubleL_Leo
@DoubleL_Leo Год назад
Thank you soo much Bhaiya for your efforts ❤
@samaraho_dev
@samaraho_dev 25 дней назад
Node* sortTwoLists(Node* first, Node* second) { if(!first) return second; if(!second) return first; Node *head = NULL; if(first->data data) { head = first; first = first->next; } else { head = second; second = second->next; } Node *curr = head; while(first && second) { if(first->data data) { curr->next = first; first = first->next; } else { curr->next = second; second = second->next; } curr = curr->next; } if(first) { curr->next = first; } else { curr->next = second; } return head; } If you were looking for a more generalised way! Here it is
@Engineering_Unlocked
@Engineering_Unlocked 2 месяца назад
thnx bhaiya :) completed on 8/7/24
@manavsingh5919
@manavsingh5919 Год назад
Thank u Sir... Understood Everything💖
@RaviKumar-sn6tu
@RaviKumar-sn6tu 2 года назад
Best series on utube👌
@kaushalkumar01
@kaushalkumar01 2 года назад
Half century completed🔥🔥🔥
@DilipKumar-si4ww
@DilipKumar-si4ww 2 года назад
Great bhaiya I'm going slow... but I'll get into your pace...
@mohammadayajansari3563
@mohammadayajansari3563 Год назад
nice video🤗🤗🤗 ( we can also solve this problem by using stack)
@ekengineer9868
@ekengineer9868 2 года назад
Consistency++ I'm coming here just few lectures behind
@prashantbirajdar9271
@prashantbirajdar9271 2 года назад
achhi thi bhaiyaa ekdum mast sub smj aya hume❤✌👍
@saurabhrajput7492
@saurabhrajput7492 2 года назад
sending lots of love and respect to LOVE_BABBAR;
@RohitSingh-hc8yi
@RohitSingh-hc8yi Год назад
Bhai kya padha rahe ho! maja sa aa raha hai🤓
@jattinthakur4762
@jattinthakur4762 2 года назад
bhaiya i am very demotivated because i am watching every lecture and grasping every concept but in the end when i try to do the homework ques i get stuck and sometimes my mind doesn't comprehend anything it just hangs then i have to search for the ans.. i am watching all the lectures again and again but i am unable to solve any unique ques.. pls help!!
@torus151
@torus151 2 года назад
maza aagaya bhaya sahi ma
@vishalkumarshaw9208
@vishalkumarshaw9208 2 года назад
Half century bhaia.... 🔥🔥🔥
@rohan3944
@rohan3944 3 месяца назад
Half century 🎉
@GoodWasteOfTime11
@GoodWasteOfTime11 10 месяцев назад
Love it❤
@varunmish
@varunmish 2 года назад
I hope you will do that surely bhaiya
@AyushKumar-yu5tj
@AyushKumar-yu5tj 2 года назад
Alg level contents bhaiya🔥🔥🔥🔥
@kunalkhallar9699
@kunalkhallar9699 7 месяцев назад
bool checkPalindrome(ListNode *head1, ListNode* &head2) { if(head1 == nullptr) return true; bool check = true; check = checkPalindrome(head1->next, head2); if(check == false) return false; if(head1->val == head2->val) { head2 = head2->next; return true; } else return false; } bool isPalindrome(struct ListNode* head) { return checkPalindrome(head, head); } Ye reccursion wala algo hai, lekin pata nahi kio, tez nhi chl rhi.
@ritikgarg4562
@ritikgarg4562 2 года назад
Gajab
@saujanyashukla5483
@saujanyashukla5483 2 года назад
Was Waiting for the video
@jaydwarkadhish959
@jaydwarkadhish959 2 года назад
Sir Amazing
@bhavanapundir7835
@bhavanapundir7835 2 года назад
Thankyou
@DipsOfficial802
@DipsOfficial802 10 месяцев назад
🔥🔥
@udaytewary3809
@udaytewary3809 2 года назад
Bhaut aachi vedio thi bhaiya bhaut aacha samjhaya apne maja hi aa gya jyada hard bhi nhi lga 🤗🤗🤗
@VISHESHKUMARGAVEL-ob3kr
@VISHESHKUMARGAVEL-ob3kr 2 года назад
majaa aagya bhaiya
@Viralmemerxyz
@Viralmemerxyz Год назад
amazing content and easy to understand..... so nice
@electro1146
@electro1146 Год назад
bool isPalindrome(Node *head) { //Your code here Node* curr = head; Node* prev = NULL; int num = 0; while(curr!=NULL){ int digit = curr->data; num = num*10 + digit; // forming the original number and storing in num. Node* next = curr->next; curr->next = prev; // reversing the LL. prev = curr; curr = next; } head = prev; int revnum = 0; while(prev!=NULL){ int digit = prev->data; // forming the reverse number. revnum = revnum*10 + digit; prev = prev->next; } if(revnum == num) return true; else return 0; } solved it on my own.... it was pretty easy tbh ;)
@rishabhmohan_
@rishabhmohan_ 2 года назад
Love u bhaiya ❤️
@gauravbansal2998
@gauravbansal2998 8 месяцев назад
Guys, dyaan dena iss baar middle Node ek aage wali hogi, isliye fast = fast->next likha hai function mein, unlike the previous question!!
@krato8731
@krato8731 2 месяца назад
my placement season is 2 months away and i am here will update how much i landed
@anshulshirbhate1370
@anshulshirbhate1370 7 месяцев назад
The 2nd solution doesn't work for the cases 4 - 3 - 2 - 4 or 1 - 2 . Minor mistakes are present.
@sagnikmodak4178
@sagnikmodak4178 Год назад
thanks sir
@_tan2112
@_tan2112 Год назад
Legendry
@torus151
@torus151 2 года назад
present sirji
@aaryansharma4984
@aaryansharma4984 2 месяца назад
it gives error for test case [1,2] problem is in getMid part and then when we revrse it middle ->next = nuLL in this test case
@KaushikSharma-c3q
@KaushikSharma-c3q Год назад
Aweosme Explanation.
@kumarpawansahh
@kumarpawansahh 2 года назад
Much awaited
@sherebanoburhani8939
@sherebanoburhani8939 2 года назад
Present Bhaiya
@adityauniyal8632
@adityauniyal8632 Год назад
Intersection point of two link list is also important
@itsjustmeandyou
@itsjustmeandyou Год назад
we can reverse whole linked list and can compare
@TheBaljitSingh
@TheBaljitSingh Год назад
at 11:44 the middle element will be ritht most occurance???? right side 3
@AA-wy9vw
@AA-wy9vw 2 года назад
Loving the series!!
@RohitSingh-hc8yi
@RohitSingh-hc8yi Год назад
Attendance marked
@udaypratapsingh8923
@udaypratapsingh8923 2 года назад
waah bhaiyaa man gye .... op
@ayushkushwaha171
@ayushkushwaha171 2 года назад
Bhaiya you should've given an example with odd number of nodes as well like 12321.
Далее
Premature Optimization
12:39
Просмотров 805 тыс.
Merab vs Sean underway!! 🚨 #ufc306
00:23
Просмотров 943 тыс.
How A Tier 3 Developer Got A 80L/Year Remote Job
17:51
Просмотров 187 тыс.
Why are you not creating anything in c++ ?
14:46
Просмотров 115 тыс.