Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++... Telegram: t.me/apnikaksh... Instagram: / dhattarwalaman Notes of this Lecture:
Пікірлер: 250
@shaileshyadav60043 жыл бұрын
mam apke padhane ke tarike se apka fan ho gaya hu best tarika hai apka koi chij samajhane ka
@akshayan40122 жыл бұрын
In the while loop of traversing the extra length, we need not check whether the pointer reaches NULL because we are traversing the extra length right, so that will never reach NULL within that loop
@Aman-fz1ew Жыл бұрын
yes thats correct
@yashgaikwad5559 Жыл бұрын
what if second list given is null?
@pranavJha938 ай бұрын
@@yashgaikwad5559 u can check the edge cases before writing the logic
@codewithmePuneet4 ай бұрын
@@pranavJha93 that's why you check if it is null or not. Because, logical error is still ok but null-pointer-access is fatal
@abhaygupta734 жыл бұрын
Best ever video I watched on placement series is course ne mjhe nayi ummed di h ki m bhi Google me placement le sakta hu AGR m mehnat kru
@chotuagrawal32364 жыл бұрын
Bhaiya with respect 🙏, Sirf bdi bdi batein krne s kuch ni hota apne promise kra apne 25 lakh subscribers k samne ki yeh course pura hoga and within time hoga but ab yeh course itna late hogya h and videos bhi ni dal rhi h or shyd yeh complete bhi na ho . Ap politics ki practice mt kro jo sirf jhoote vade krke bad m kuch ni krte Agr apse itna ni hora h then 25 lakh logo k samne itne commitment krne ki jrurat ni thi 🙏🙏. Srry agr jyada likha ho but asman k sapne dikha atleast zameen level ka toh or within time content toh do 🙏
@sushilchaurasia4 жыл бұрын
Great ❤️❤️❤️❤️❤️ Di and bhaiya
@suhailahmad33404 жыл бұрын
Mai dusri channel say web deve.. Seekh raha tha but aap ki video dekii just demo tow, us course aur channel ko beech ma chood k aya for this amazing series ....always pray for u to reach the sky of ur dreams .....love u aman baiya and all the team members love u guys ...
@AnshulCSE4 жыл бұрын
Wonderful way of explaining ❤️
@niladriroy16654 жыл бұрын
Abe 1 min mai samaj gya 😂😂 video to 9 min ka hai
@AnshulCSE4 жыл бұрын
I'm folow this course from 1 video. So please use some common sense before passing comment..
@AnshulCSE4 жыл бұрын
@@niladriroy1665 🙏🙏
@Jonathan-ng4vw2 жыл бұрын
@@AnshulCSE *common please check your spelling
@mrsmurf9112 жыл бұрын
@@Jonathan-ng4vw p1=head1; p2=head2;
@KrishnaGupta-xd6xu4 жыл бұрын
Bhaiya please complete this course soon its already being very late , Lots of students waiting for this 🙏🙏🙏
@prakhar162 жыл бұрын
In second approach @3:15 we are calculating length of both LL by traversing both LL full length m and n so time complexity should not be O(m+n) ?
@codewithmePuneet4 ай бұрын
it is O(m+n)
@PrakashKumar-vr9wc4 жыл бұрын
Thanks sis. It's very helpful for me
@gauravkumar-ct5dh4 жыл бұрын
Hello Bhaiya!!! Eagerly waiting for rest of the course. You all did a great job but please don't delay the course.
@tanyagupta42473 жыл бұрын
Thankyou loved the approach!
@prashantchakrawarti424 жыл бұрын
Thanku DIDI 🙏🙏
@dikshantgangwal94174 жыл бұрын
Thanks a lot 😇
@pinkeshpatel19403 жыл бұрын
Wonderfully explained. Thanks for great content. :)
@dipakdhakate56132 жыл бұрын
Bhai placement lagi ky aapko
@ayushsrivastava23973 жыл бұрын
too good explaination.....cleared every thing
@broskie_ceo18254 жыл бұрын
You should also start a series on CYBER SECURITY, in future this industry will boom due to the technological advancement that is happening in today's world. Like what should you focus on during your starting phase and etc. Hope you read this comment and release a series on CYBER SECURITY!!!!
@arnavraj90944 жыл бұрын
You mean ethical hacking?
@09ankitverma894 жыл бұрын
bro y vala course aur web D toh poora ho jaye na
@broskie_ceo18254 жыл бұрын
@@arnavraj9094 that’s one side of it but there are other fields in this major like pen testing, offensive hacking, red team, defensive hacking, bug bounty and etc.
@akashthoriya4 жыл бұрын
Please cover the most popular Leetcode challenges ko bhi include kar do bhai. [Difficulty = Hard vale]
@dipakdhakate56132 жыл бұрын
Bhai placement lagi ky apko
@akashthoriya2 жыл бұрын
@@dipakdhakate5613 yes lag gai hai
@kale-lb5pr Жыл бұрын
node* intersectionY(node* head1, node* head2) { if (head1 == NULL || head2 == NULL) return NULL; node* temp = head1; map mpp; // Insert nodes of the first linked list into the map while (temp != NULL) { mpp[temp]=1; temp = temp->next; } // Traverse the second linked list and check for intersection temp = head2; while (temp != NULL) { if (mpp.find(temp) != mpp.end()) { return temp; } cout
@Syntax-scribe-jsx4 ай бұрын
thankyou mam!
@SatyamGupta-yq1pt4 жыл бұрын
Mam apka ds bahut strong
@AmarjeetKumar-to9ub2 жыл бұрын
Thank you :)
@Learningdam3 жыл бұрын
Very clear explanation 👍
@sahilsawal6644 жыл бұрын
Nicely Explanation Ma'am :) 🔥👍👌✌
@adityaagarwal23243 жыл бұрын
Why we have called head1 and head2 by reference, in the Q can I called without it??
@SatendraKumar-mk1ui4 жыл бұрын
Please increase the frequency of the video.
@krishnananddubey28703 жыл бұрын
There is no need to add if condition in while(d) { ___} part as ptr1 will never become NULL on doing d-- as ptr1 is always greater than ptr2.
@gauravupreti93403 жыл бұрын
No, if second linked list is NULL, then this condition is needed.
@ShivamSingh-tk5gu3 жыл бұрын
Yes ,this is a unnecessary condition because if second LL will null then first will completely traverse and then return -1 takes place
@gauravupreti93403 жыл бұрын
@@ShivamSingh-tk5gu Yes, you are right, there will be no segmentation fault in this case.
@charannn37554 жыл бұрын
when this course will be completed? my placements are starting from next sem(in 2-3 months) Aman bhaiya respond please..!
@namanjain77104 жыл бұрын
They won't respond what they said in the timeline video that till 6 Jan graphs will be completed but now not even linked list is complete
@saurabhkumar59414 жыл бұрын
bhai.. aur bhi channels hain wahan se dekle.. koi koi topics
@shauncrasta4 жыл бұрын
i would recommend u to buy the gfg ds algo course for 2500...
@charannn37553 жыл бұрын
@@shauncrasta thank you
@ayushanand28184 жыл бұрын
Please increase the speed of uploading courses in this playlist as it s already delayed. Love ur work btw keep it up😇🙂
@ghosthunternotclickbaitaka19974 жыл бұрын
They are so behind of WHAT they promised
@pritishpattnaik46744 жыл бұрын
@@ghosthunternotclickbaitaka1997 bhai achha cheez banne mein time aur hard work dono lagta hai....and they are providing such a great course on youtube....so they should deserve more time
@ghosthunternotclickbaitaka19974 жыл бұрын
@@pritishpattnaik4674 arey bhai toh pehle badhi badhi batein kyu ki thi aese he boldete ki itna time lenge aur vese bhi last 10 videos mai koi animation bhi ni hai khaali slides he hai vese tum jese blind fans kabhi manoge he nahi
@ghosthunternotclickbaitaka19974 жыл бұрын
@@pritishpattnaik4674 and just rest of the comments on their recent videos of you don't believe me
@pritishpattnaik46744 жыл бұрын
@@ghosthunternotclickbaitaka1997 han bhai baat to tumhari bhi sahi hai😅...
@zaminraza23164 жыл бұрын
thanks bhaiya
@ANANDKUMAR-jk9yp3 жыл бұрын
Crystall Clear Explanation!!
@dipakdhakate56132 жыл бұрын
Bhai placement lagi ky aapko
@muhammadyaqoob82114 жыл бұрын
Thansk for hard word for us
@KodiLearn4 жыл бұрын
This is not animation. This is just powerpoint slides. These types of video can be made by anyone in just 4 hrs. Then why so late?
@atharvkshirsagar54954 жыл бұрын
Didi used some words of Aman Bhaiya... "Kar rahe honge"👈
Bhaiya , aap har Baar beech mein hi course chodd dete ho .... 😭😭😭 Itni late videos aaenge to kaise consistency maintain hogi?? Aap hi batao.....
@hustlewithVaibhav4 жыл бұрын
Thank you didi
@shivankkapila29542 жыл бұрын
But length naalne ki khud ki time complexity O(m + n) nhi hogi?
@manistrikes2 жыл бұрын
Yes...but coding contests mai pehle se hi functions mai length di hoti hai as a parameter...so we are not required to count their lengths in those contests.
@pratushporwal58152 жыл бұрын
i wanted to know why we used pos--; statement before loop void intersect(node* &head1, node* &head2, int pos){ node* temp1 = head1; pos--;
@devanshpatil53264 жыл бұрын
Bhaiya we are way behind the schedule!!
@freekeys4 жыл бұрын
Length of the lambi linked list maja agai sunke👌😂
@abhishekmaurya5283 жыл бұрын
How the time complexity of the method you used is lower than the first approach, as time complexity in finding the length will be O(n+m) + O(n) n being the longer linked list
@nidhijawle34303 жыл бұрын
Same doubt
@kshitijgaikwad83433 жыл бұрын
m+n TC is for finding the intersection and o(n) is for intersecting 2 linked lists... so basically for function intersection TC is m+n and for function intersect TC is n. please quote me if I'm wrong
@subhradipbarik20323 жыл бұрын
as O(n+m) is greater than O(n) thats why it will be O(n+m). and in 1st approach we need a graph , but in this approach with same time complexity we can do it with constant space complexity .
@nidhijawle34303 жыл бұрын
@@subhradipbarik2032 thanksss😄
@subhradipbarik20323 жыл бұрын
@@nidhijawle3430 my pleasure
@saurabhkumar59414 жыл бұрын
aage ki videos daalo bhaiii.. zaldi see
@bhavesh59954 жыл бұрын
Awesome , wonderful 👍🏻👍🏻
@shivammaurya34514 жыл бұрын
Thank u mam best explanation
@rounikprashar67154 жыл бұрын
Iski time complexity better kaise hai? Length nikalne me he O(n+m).
@rivines3 жыл бұрын
Ye to dono case me lagegi na
@vedant80024 жыл бұрын
Keep up the good work 👌
@dipakdhakate56132 жыл бұрын
Bhai placement lagi ky aapko
@hvsr184 Жыл бұрын
What if l1==l2 then what we do
@acva2 жыл бұрын
Understood everything didi but this code will give error when the two lists are not linked but ptr1 and ptr2 get to null at the same point so to check for that the 'if' statement will be: if(ptr1 == ptr2 && ptr != NULL){ return ptr1->data; } :)
@SyedMuhammadAli-tr4cg Жыл бұрын
what if intersection point is at first node?? then we will use d = l1 - l2 or not??
@yashvats47563 жыл бұрын
PRO TIP-TO CREATE INTERSECTION JUST USE head2->next->next->next->next=head->next->next; TIP-My code shorter than this using same approach and also detatching a linked list from intersection if intersection is found- bool findintersection(node* head1 , node* head2) { if (head2next!=NULL) // or head1->next!=NULL { if (head2->next==head1->next) { head2->next=NULL; return 1; } head1=head1->next; head2=head2->next; } return 0; }
@romangaming51772 жыл бұрын
in line 94 and 95 ptr1 will never gets null because there is decremet in d,
@shashankjha91082 жыл бұрын
Insertattail jb head le rha hai to usmai head1 head2 kaisai dal sktai hai
@charannn37553 жыл бұрын
pehele tho time complexity 0(m+n) karke bathaye the..is it o(n) or o(m+n)..?
@aanchalsharma16102 жыл бұрын
Have u used hashing in this solution?
@dipeshsharma75054 жыл бұрын
awesome course helped a lot , how many more videos left to be uploaded for this course
@nitinchandel47864 жыл бұрын
Approximate 150 video left
@dipakdhakate56132 жыл бұрын
Bhai placement lagi ky
@mohdhasnain38123 жыл бұрын
at time 5:40 is this check ptr1==NULL is necessary because we are decrementing d also .. please help its line number 95
@rounaksoni2817 Жыл бұрын
if the intersection point is the first point then?
@tejasjoshi91404 жыл бұрын
When is webd course comming
@nitinchandel47864 жыл бұрын
Bhai chalra hai apna college per hi
@tejasjoshi91404 жыл бұрын
@@nitinchandel4786 ha aaj upload hua
@nitinchandel47864 жыл бұрын
@@tejasjoshi9140 na bhai 10 din se bhi jyada hogye is course ko chalte
@nitinchandel47864 жыл бұрын
@@tejasjoshi9140 tum kha se ho or kya ker rahe ho
@tejasjoshi91404 жыл бұрын
@@nitinchandel4786 pata hai bhai sari videos dheki hai mene
@rashadahmed29194 жыл бұрын
videos daily basis pe upload ku nhi ho rahi hain? way toot raha hai poora
@mr.jyotiranjankalta80984 жыл бұрын
Bhai itna vi deri kyu aur video ayega vi ya nahi
@prathvishetty98024 жыл бұрын
Why java placement course is stopped 😣
@omarmahmood68914 жыл бұрын
because aman dhattarwal fired anuj bhaiya
@nitinchandel47864 жыл бұрын
@@omarmahmood6891 why aman bhaiyya fired anuj bhaiyya
@omarmahmood68914 жыл бұрын
@@nitinchandel4786 He wanted to start the new C++ course with highly trained professionals. So he stopped the Java course.
@criminalcoder63074 жыл бұрын
@@omarmahmood6891 lol duffer anuj Bhaiya leave Aman dhattarwal. Entire world knows who is better and who is just barking dog.
@namanjain77104 жыл бұрын
@@omarmahmood6891I don't think this will complete too becuz they are way way way more behind than what they promised see timeline video on his main channel
@anildhasade38284 жыл бұрын
Aman bhaiya told that lectures are divided into phase 1 and phase 2 is phase 1 completed already can any one please tell me
@ghosthunternotclickbaitaka19974 жыл бұрын
not even one fourth they are very late with the timeline which they gave see the timeline pdf on his main channel
@ankurkhandelwal13753 жыл бұрын
In the last while loop, can't we use OR operator instead of AND ?
@funnykidz28373 жыл бұрын
No , bcse if any of the ll will reach at end that means there is no intersection pt. In between.
@yashvats47563 жыл бұрын
WE CAN USE ANY , INFACT WE CAN JUST TAKE WRITE ANY ONE
@Learnwith-jyoti2 жыл бұрын
what if case-1 : k==1 case-2 : k==length of linkedlist 🙄🙄
@Simpleperson14144 жыл бұрын
Sir, My college is teaching python in first year and java from 2nd year But I want to learn C++ because your teaching it, what to do ??
@Mr__Impeccable4 жыл бұрын
I will watch it later coz I'm in 1st sem now..(just came to like the video) 🥴
@MohammadKhan-ld1xt4 жыл бұрын
Bro if you are in the first semester I strongly advise you to see all the videos in his playlist . By the time you are in the 2nd year you can practice algorithm and by the end of 4th semester you will be doing exceptionally well. Just an advice , it's your choice though it will help you a lot 😉
@Mr__Impeccable4 жыл бұрын
Thanks Bhai.... string tk Kiya hai abhi ..isi playlist k through
@MohammadKhan-ld1xt4 жыл бұрын
@@Mr__Impeccable Sahi hein mein bhi 1st semester mein hi huu.
@ernatertan18274 жыл бұрын
❤️❤️
@BCS-ot5bf4 жыл бұрын
Can anybody tell when this course going to complete so i could make proper time table
@arnavraj90944 жыл бұрын
1.5 months
@namanjain77104 жыл бұрын
It will take much more time they are not at the pace they promised that they'd be see they said 6 Jan graphs would be completed but now not even linkedlist is complete
@anony12mous4 жыл бұрын
Why it gives error: 'i' does not name a type
@r1sh1494 жыл бұрын
Iss video me to 0 animation tha sirf ek slide ke upar explain kiya and then code to baki videos upload karne main itna late kyu ho raha hai🙄🙄
@srij_122 жыл бұрын
Solution in java public class Solution { public int length(ListNode head) { ListNode temp = head; int count=0; while(temp!=null) { count++; temp = temp.next; } return count; } public ListNode getIntersectionNode(ListNode headA, ListNode headB) { int l1 = length(headA); int l2 = length(headB); int diff_len = Math.abs(l1-l2); ListNode ptr1 = null; ListNode ptr2 = null; if(l1>l2) { ptr1 = headA; ptr2 = headB; } else { ptr1 = headB; ptr2 = headA; } while(diff_len>0) { ptr1 = ptr1.next; diff_len--; } while(ptr1!=ptr2) { ptr1 = ptr1.next; ptr2 = ptr2.next; } return ptr1; } }
@it_does_matter3 жыл бұрын
In the intersection code part where (head1,head2,int pos),what does that pos signify.Its value was taken as 3,is it position or value
@Drogon-Gaming3 жыл бұрын
it means the third node from the head
@bkbhushan53313 жыл бұрын
I think it should be 5 as taken in the example of the video since we are intersecting the 5th node of the first linked list
@VikashSingh-kg8xr3 жыл бұрын
7:08 kuchh samjh nhi aaya thoda dheeme dheeme
@aas-vlog14 жыл бұрын
Apni kaksha par java placement cource kab continue hoga aap wahin se bhi start kar sakte hain hame wahan se koi reply mila nhi Yaa fir aap hame age ka path bata do pls
@itsaryanguys4 жыл бұрын
❤️🙏
@pk42883 жыл бұрын
can anyone explain line 41 me pos-- kyu kara gaya hai?
@anumoynandy58113 жыл бұрын
index=pos-1(that is why post decremeter operator is used)
@harshpanwar15502 жыл бұрын
🙏🙏🙏🙏🙏🙏
@melodytunes22043 жыл бұрын
agar hum length nikalenge tab bhi toh time complexity n+m hojayegi
@kailashsahoo12094 жыл бұрын
When python course is coming, bhaiya
@nitanshuranjan22724 жыл бұрын
which college
@himanshusharma-tj1bt4 жыл бұрын
bhaiya video jaldi upload kiya karo
@techsolutions34064 жыл бұрын
Bhaiya agar video animated karna m time lag raha h tho video asa h upload kar di bina animation k par time par upload karo , hamre career ka sawal h ..agar time lagaga upload hone m tho asa bato ham or kahi se reference kare par kam se kam sahi bola k bta do juti tasali mat do jse phle kaha tha course lauch karta time ki January tak graph topic tak upload kar doge videos par abi tak tho linkedlist k video h sare upload nahi kiya 🤦😡😡😡😡😡😡😡😡😡😡😡😠😠😠
@nickatytepro86902 жыл бұрын
how ptr 1 becomes NULL if its length is already greater than d??
@manistrikes2 жыл бұрын
If the second list of of 0 length ...then d= length of 1st list and we reach ptr1=Null
@thedreamballer4 жыл бұрын
Bhaiya bas heart dedo bhaiya plzzzzzzzzz
@melodytunes22043 жыл бұрын
heart ❤❤
@atulraj83814 жыл бұрын
Can we don't use only head1 and head2 instead of &head1 and &head2 ? Please someone explain clearly
@learningoverflow31383 жыл бұрын
we want address of head1 head2 cos we r gonna be making temporary nodes to traverse
@hustlewithVaibhav4 жыл бұрын
Bhaiya please upload next video
@anu38723 жыл бұрын
I'm getting a segmentation fault, can anyone pls help? #include using namespace std; class Node { public: int data; Node *next; Node(int val, Node *n = NULL) { data = val; next = n; } }; void insertAtTail(Node *&head, int val) { Node *n = new Node(val); if (head == NULL) { head = n; return; } Node *temp = head; while (temp->next != NULL) { temp = temp->next; } temp->next = n; } void display(Node *&head) { Node *temp = head; while (temp != NULL) { cout data next; } cout n) { head1 = head1->next; m--; } while (n > m) { head2 = head2->next; n--; } while (head1 != NULL && head2 != NULL) { if (head1 == head2) return head1->data; head1 = head1->next; head2 = head2->next; } return -1; } void makeIntersect(Node *head1, Node *head2, int pos) { Node *temp1 = head1, *temp2 = head2; while (temp1 != NULL && --pos) temp1 = temp1->next; while (temp2->next != NULL) temp2 = temp2->next; temp2->next = temp1; } int main() { Node *head1 = NULL, *head2; insertAtTail(head1, 1); insertAtTail(head1, 2); insertAtTail(head1, 3); insertAtTail(head1, 4); insertAtTail(head1, 5); insertAtTail(head1, 6); insertAtTail(head2, 9); insertAtTail(head2, 10); makeIntersect(head1, head2, 3); display(head1); display(head2); cout
@NormieCyrox3 жыл бұрын
base case change karo
@nitinchandel47864 жыл бұрын
Is course me aproximate kitni video hogi pls koi btao
@kaushittejwani58394 жыл бұрын
how many videos are remaining in this playlist
@nitinchandel47864 жыл бұрын
150
@sandeepkumarsingh48024 жыл бұрын
kya yaar bhaiya...........aese kaise chalega..........january mein course complete karne ka promise kiya tha aapne.....ab lag raha hai march tak bhi khatam nhi hoga.
@RishabhMazumdar3 жыл бұрын
Free mein quality content mil raha utna hi kafi nahi hai kya?
@ytg66633 жыл бұрын
@@RishabhMazumdar or Free me Dhokha bhi 👍
@ytg66633 жыл бұрын
Sahi bola vro sandip
@mdekramuddin85343 жыл бұрын
Hello..I want to know that does this playlist contains complete c++ and DSA ? I want to start
@subhadeepghosh28134 жыл бұрын
waiting for nxt one
@sawi4943 жыл бұрын
Plz also provide full code 🙂🙂
@gokulnaathb26273 жыл бұрын
Nice explanation
@seemasamridhi83484 жыл бұрын
ethical hacking P lzz respond i wanna learn it....
@anurag_goel62323 жыл бұрын
No notes in description box
@namanjain77104 жыл бұрын
As expected yeh course bhi delay hogaya khaali pehle upar jadhate ho timeline waali video dekho sabh usmai 6 Jan tak graphs hona tha aur yaha toh linkedlist bhi khatam nahi kiya abh meri placements hai batao bhaiya aapke uspar depend tha pehele timeline galat di he kyu👺👺
@shivamuttpaljha31344 жыл бұрын
Bhai ye timeline wali video konsi hai Link de toh zara
@shivamuttpaljha31344 жыл бұрын
Bhai ye timeline wali video konsi hai Link de toh zara
😡😡😡😡😡Bhaiya agar video animated karna m time lag raha h tho video asa h upload kar di bina animation k par time par upload karo , hamre career ka sawal h ..agar time lagaga upload hone m tho asa bato ham or kahi se reference kare par kam se kam sahi bola k bta do juti tasali mat do jse phle kaha tha course lauch karta time ki January tak graph topic tak upload kar doge videos par abi tak tho linkedlist k video h sare upload nahi kiya 🤦😡😡😡😡😡😡😡😡😡😡😡😠😠😠