Perfectly explained sir , I got here after 3 videos and understand this approach here completely .❣️❣️ One suggestion sir , please use relevent tags and #tags in your description so that your videos pop up as when i searched this problem your video doesn't appear .
Suggestion: please use tags like #stack etc... i searched for stack playlist but ur videos didnt show up to me.. its an awesome playlist .. please do this in order to spread this good work
sir, please make a video on (computer network) preparation in 3 days for placement sir , "you forgot it this subject to make a video " its humble request sir please make a video as soon as possible
great explanation bhaiya I have a little doubt, we are using the map in which we are putting the nodes which are ultimately is going to be part of the answer then why space complexity is O(N) it should be O(1)
hey @Fraz Can you pls provide the optimized solution Explanation of count pairs in array whose product is divisible by k? Rather than proving explanation of questions which are already well explained in several other channels.
Yaar bhai kisi ka nam to nhi lunga .....bt jo flow and sweetness wale mood se aap sikhate hoo sawaal ek point ke baad logic se khud code kr lete h 🤗🤗🤗 pr baad me repent hota h ki phle aapki hi video kyu nhi on ki😓...keep going ....🙏🥺😍
I watched Striver and many other videos for this but didn't understand. Your explanation for LinkedList videos are really easy to get. Thanks Fraz.
Bhaiya aap bhaut accha explain karte ho.Mtlb ek dum basics se explain kiya aapne aur aaram aaram se pura question samjha diya.Superb
🔥🔥 yahi to chahiye
Question - accha
Explanation - accha*100
Bhaiya aapka question selection op hai bhut op !!!!!!
very easy explanation as compared to other youtubers. thanks
I also watched the same problem in other channels but didn't understand a bit.
Here, I found best explanation
so depth explanation for complex problems ❤️❤️❤️❤️🔥🔥🔥🔥🔥
Iska next vala dekho , or mazedar hai
dekh liya bhaiya 👍
Really superb explanation
1. BRUTE APPROACH(Recursion + HashMap):-
--------------------------------------------------------------------------
class Solution {
public:
unordered_map m;
Node* dfs(Node* node){
if(!node) return NULL;
if(m.find(node) != m.end()) return m[node];
Node* newNode = new Node(node->val);
m[node] = newNode;
newNode->next = dfs(node->next);
newNode->random = dfs(node->random);
return newNode;
}
Node* copyRandomList(Node* head) {
return dfs(head);
}
};
// Time Complexity = O(n)
// Space Complexity = O(n)
2. OPTIMIZED APPROACH(HashMap) - By Fraz Bhaiya (from this lecture):-
----------------------------------------------------------------------------------------------------------
class Solution {
public:
Node* copyRandomList(Node* head) {
unordered_map m;
Node* temp = head;
while(temp != NULL){
Node *copy = new Node(temp->val);
m[temp] = copy;
temp = temp->next;
}
temp = head;
while(temp != NULL){
m[temp]->next = m[temp->next];
m[temp]->random = m[temp->random];
temp = temp->next;
}
return m[head];
}
};
// Time Complexity = O(n)
// Space Complexity = O(n)
-----------------------------------------------------------------------------------------------------------------
Enjoy Guys !!! ❤😉
I wrote here for revision purpose in future but you can use too for revision :)
And Thank to Fraz Bhaiya 🙏🥰❣🔥for whole content :)
Perfectly explained sir , I got here after 3 videos and understand this approach here completely .❣️❣️
One suggestion sir , please use relevent tags and #tags in your description so that your videos pop up as when i searched this problem your video doesn't appear .
This is pure Gold
best video for this question
This series is far better from paid courses, I have seen ❤️
Thank you so much Sunny ❤️
Complete bhi krli kya ?
@@mohammadfraz hn😌
@@SunnyGupta00 saat me code bhi kro bro ese dekhne se fayda nhi hota
@@thinkingmad1685 hn bhai ab thoda bhaot bhul gaya me 🥲🥲
Amazing explanation
Thanks Harshita
Mast 🔥
Thanks ❤️
Suggestion: please use tags like #stack etc... i searched for stack playlist but ur videos didnt show up to me.. its an awesome playlist .. please do this in order to spread this good work
waited for this explanation , thanks bro ❤️
You're welcome 😊
what an interesting solution. Thanks.
how easily he explained such a difficult question ? Thanks a lot Bhaiya
best content ever
sir, please make a video on (computer network) preparation in 3 days for placement
sir , "you forgot it this subject to make a video "
its humble request sir please make a video as soon as possible
great explanation bhaiya
I have a little doubt, we are using the map in which we are putting the nodes which are ultimately is going to be part of the answer
then why space complexity is O(N) it should be O(1)
hey @Fraz Can you pls provide the optimized solution Explanation of count pairs in array whose product is divisible by k? Rather than proving explanation of questions which are already well explained in several other channels.
Bhaiya video is very helpful bhaiya code ke saath comments bhi likh dijiye
Good explanation bro
Thanks bro
Reach++ 🔥
🙏🙏
Thanks
Yaar bhai kisi ka nam to nhi lunga .....bt jo flow and sweetness wale mood se aap sikhate hoo sawaal ek point ke baad logic se khud code kr lete h 🤗🤗🤗 pr baad me repent hota h ki phle aapki hi video kyu nhi on ki😓...keep going ....🙏🥺😍
too good bhaiya
Thanks bro
I'm not able to understand how the links have been made?
nice problem nice video
Thanks Abdul
Bhaiya ye sare concepts enough ha interview ke liya ?
In linkedlist topic ?
If some remaining concepts left then please mention
Enough hain
@@mohammadfraz ok bhiaya
Stack and queue ab kaha se krna chaiye mujhe question jaisa yeh playlist ha waisae koi se
360P pe v HD clarity ati h
🔥 720 chala lo
💯
First I want heart
Ye lo ❤️