Hi Striver, I just wanted to thank you for your incredible DSA tutorials. Your clear explanations and thorough examples have made a huge difference in my understanding and proficiency. Thanks to your videos, I've become very proficient in DSA, which has significantly boosted my confidence and performance in my coding Keep up the great work, you're making a big difference!
@abhimanyus87575 ай бұрын
how it, am started today, did u make notes?
@omkarshendge54385 ай бұрын
@@abhimanyus8757 notes is compulsory
@harshitaninama52356 ай бұрын
Finally the stack playlist is here!!! thankyou so much!
@yashsharma61086 ай бұрын
You are such a hardworking fellow .... seriously you inspire me everyday to work even harder to make myself better day by day...thanku striver😊
@DevilJim-p1s4 ай бұрын
Bro I'm just looking for a review I've just started are you good enough now at the end?
@CodewithKing3602 ай бұрын
Bhai kitna din lagega is karne me
@karthik-varma-15794 ай бұрын
I Have Learned this Technique in my Operating Systems Subject in Page Replacement Algorithms using Stack And Now I am in My 3-1 Semester Again visiting to the LRU cache in Data Structures seems the main use of it and Striver Has Very Well Explained it. And Now I am able to Do My own for LFU Cache. Thank God!!!
@akesh5005 ай бұрын
Please consider doing a series on Strings.
@_ankit_gupta_6 ай бұрын
just going to start older stack playlist but got new playlist thanks you striver !!!
@agrawalmitesh43956 ай бұрын
Gem , just saw your explanation of first 13 min how to do it , and was able to implement it myself , in very less time
@THOSHI-cn6hg2 ай бұрын
he has started taking yt channel for granted
@prithvirathore74365 ай бұрын
Hello ,Raj sir I hope this comment finds you well,as String is the most important topic in the dsa when it comes to placements,so it's a humble request from you to please make videos on strings .as my placements are going on and arrays and strings are much asked questions
@aryanbundela60316 ай бұрын
My goat grinding hard at night
@user2k563 ай бұрын
@takeUforward We need a string series brother plz , as soon as possible.#A2Z DSA
@omkarshendge54385 ай бұрын
currafterhead→prev = node; this step is missing in the insertafterhead function
@AbhinavMohanParaverse3 ай бұрын
Wanted to make a comment to point this out, but you got it!
@Sumantashee-e3w5 ай бұрын
Sir you are a good teacher in DSA.... I'm injoy this playlist full stack playlist please 🙏🙏
@mohammedrayan21926 ай бұрын
Hello raj bhaiya. Thank very much for taking your valuable and effort to teach DSA. Please create a video on Java Collection Frameworks.
@abhiroopmokshagnabheemineni3 ай бұрын
Such a beautiful explanation!! Kudos!
@HEMANTPORWAL-t7d6 ай бұрын
thank you striver for all these interesting stuffs
@swathigp381812 күн бұрын
Incredible explanation
@kunal50773 ай бұрын
Very Nice explanation. Eagerly waiting for strings playlist
@swaroopparida04296 ай бұрын
Hi striver please bring playlist on string
@ishan96046 ай бұрын
Thank You Striver , you really help me in trees and graph series!
@FarziWada-q3rАй бұрын
The last video of a2z sheet was added 4 months ago. When will the next videos be uploaded?
@ShivamGupta-ei2sv2 ай бұрын
Bhaiyya I am eagerly waiting for string playlist
@umeshkaushik7104 ай бұрын
Hi Bhaiya, Please complete Strings list from the sheet, and I think Strings question might need some more addition. When we can except String Playlist out ?
@harigs722 ай бұрын
Oh my goodness! I found the optimal solution of it by myself. I have just come here to see the most optimal solution of it..😅
@HemangSinghal-op5ep5 ай бұрын
Wonderful Explanation
@madhupathak77726 ай бұрын
Hello sir!! Please upload the heaps playlist asap
@updownftwАй бұрын
Why is this in the Stack and queue playlist ?
@KeigoEdits6 ай бұрын
I respect you a lot striver literally but please take this suggestion into consideration, dont make videos for the topics you already made earlier We are eagerly waiting for strings series and recursion series
@Jai_Shri_Krishna_Shri_radhe6 ай бұрын
If you Reached 13:35 skip to 20:45 Again restarted writing pseudocode
@akhilesh_ku6 ай бұрын
No , firstly he just wrote pseudo code , for second time it's cpp code😅😂
@omkarshendge54385 ай бұрын
yup exactly
@omkarshendge54385 ай бұрын
@@akhilesh_ku the first time also it is cpp heavy only bro.
@AbhijeetChouhanXD3 ай бұрын
strings ke videos le aao bhai
@Hy_there014 ай бұрын
This video lasts longer than my relationship 😂
@souvikbasak43966 ай бұрын
Bhaiya could you tell beforehand if you going upload any chapter(specsilly graph and dp) playlist which is already available in older playlist , so that instead of the older playlist I could wait a few more days for the newer playlist , like are you going to upload new playlist of graphs and dp , else i will continue with the older one only.
@arunbhagat8023Ай бұрын
Sir String and Heap Playlist Please....!!!
@venumsingh6 ай бұрын
Thanks for the video. Which software is used for recording the video?
@AneeshPal-t7y2 ай бұрын
I m just not able to get that when we change order of elements so that it becomes the most recently used , why we are not changing the reference i.e. new location in map as now nodes location is changed....
@karthi2174Ай бұрын
Hello everyone, my placements are starting in March 2025. I have started learning DSA using the TakeUforward SDE sheet and have completed the first 10 problems. However, I was able to understand only 3 of them, and I am struggling to build logic on my own. I am unsure if I am on the right track or where to start. Could you please give me some advice on how to approach solving problems independently and where I should begin? I have programming knowledge but need guidance. I am not aiming to join a big MNC company, but I want to prepare effectively.
@AbhinavTriesАй бұрын
youre doing just fine bro, you've just started, i've been there, im done with 50% of the sheet yet I struggle with intuition, dont worry just keep practicing comment your own notes in the code, it'll help in revising also whenever you approach a new approach, write it down somewhere
@FarziWada-q3rАй бұрын
When will be the next video uploaded?
@atulwadhwa1923 ай бұрын
Will there be any difference if we delete from front and insert at the back? In terms of complexity?
@ShubhamKumar-vk8me5 ай бұрын
Bhaiya String ka video kab tak aajaye, You said you will be uploding it before september
@Panther_jf6 ай бұрын
Bhaiya, would love to learn Binary Trees next, pls❤ And the stack playlist was amazing as always😍
@KeigoEdits6 ай бұрын
Binary trees playlist is already completed, go check out
@Panther_jf5 ай бұрын
@@KeigoEdits I was talking about the new version of binary trees playlist
@curs3m4rk4 ай бұрын
I was able to implement after watching approach of DLL and HashMap, Got stuck at the place where I was able to delete LRU from DLL, but could not find out how to remove that node from hashmap. Storing key, value pair in DLL Node is a great idea. Thanks :)
@ParthDabhiOfficialАй бұрын
UNDERSTOOD, Radha Radha
@prashlovessamosa6 ай бұрын
Sir can you please add the solutions in python too I have to visit the third party website to read the code. Very grateful to you for the series.
@theultimatespo...420520 күн бұрын
Can it be done by using dequeue
@shresthgupta26706 ай бұрын
legend is here
@arl0817osho5 ай бұрын
does it should be afterhead->prev = node in insert funciton also?
@rameezalipacific6 ай бұрын
I'm from Pakistan and currently pursuing a degree in software engineering. Alongside my studies, I'm dedicating significant time to mastering data structures and algorithms (DSA). However, I'm uncertain if excelling in DSA alone is enough to secure a job at top tech companies like the one you work for. Do I need to develop additional skills, such as web, app, or game development, to increase my chances of success? Also, could you share your experience on when you started focusing on DSA-was it during your degree or afterward?
@deveshagarwal6605 ай бұрын
You mentioned that you will be using a DLL for solving this, but never explained that how did you come to a conclusion of using a DLL. It is also important to explain your choice of using any particular data structure or algorithm when someone is solving problems in an interview.
@AbhijeetChouhanXD2 ай бұрын
Because we are (i) adding elements to front (ii) removing from the back and adding to front In say singly LL, to remove the last element, we would have to travel the list taking O(n) time. Similarly in something like an array, to add an element to the front we would have to shift all the elements, taking O(n) time.
@MO-fg2cm2 ай бұрын
Lru in processors done in maps ?? No way , is this some dsa course then ?
@THOSHI-cn6hg3 ай бұрын
upload next series cmmon bro
@DrawwithNavi6 ай бұрын
cant we just do the same thing using orderedDict, will take similar time and much shorter
@abhishekagrawal37305 ай бұрын
Bhaiya please string dal do
@astitvashukla65566 ай бұрын
Bhaiya I am following your DSA series ek baar Java collection kie video daal dijiye bahut help ho jaaegi and bhaiya meine kaafi se question practice kre solve kre but confidence and logic dono build nhi ho paa rha... Need some guidance
@sanchitkaul50848 күн бұрын
Rather than "DeleteNode" a better name of the function would be "DetachNode" .
@Leo-id4uh6 ай бұрын
code 360 not showing some of the code in the solved list which i was done before, can anyone tell about this
@KedarBhawthankar5 ай бұрын
striver is legend
@soumyadey45004 ай бұрын
can anyone help why should i use "m[key_] = head->next" under get function?
@SanketPatil-gm7pb6 ай бұрын
sir plz upload the next playlist of heap
@yogeshwardayalagarwal42286 ай бұрын
Why is it not a part of linked list playlist?
@akhilesh_ku6 ай бұрын
It uses put and get
@odorlessflavorless4 ай бұрын
~ 17:54 'we have touched someone, ... least recently used' --- we have to put in front because it is the most recently used and not the least recently used.
@adhiraj29643 ай бұрын
Striver bhaiya next topic string cover kariye pleaseee
@NirajPatel-ug2ew3 ай бұрын
my code: struct Node { int val; int key; struct Node* next; struct Node* prev; Node(int value, int x) { val = value; key = x; next = NULL; prev = NULL; } }; class LRUCache { public: unordered_map m; int size, currsize; struct Node* head; struct Node* tail; LRUCache(int capacity) { size = capacity; head = NULL; tail = NULL; currsize = 0; } int get(int key) { if (m[key] == NULL) return -1; struct Node* temp = m[key]; if (temp == head) { return temp->val; } if(temp == tail){ tail = temp->prev; } temp->prev->next = temp->next; if (temp->next != NULL) { temp->next->prev = temp->prev; } temp->next = head; head->prev = temp; head = temp; return head->val; } void put(int key, int value) { if (m[key] == NULL) { if (currsize < size) { struct Node *temp = new Node(value, key); m[key] = temp; currsize ++; if(head == NULL){ tail = temp; head = temp; return; } temp->next = head; head->prev = temp; head = temp; return ; } else { struct Node *temp = new Node(value, key); m[tail->key] = NULL; if(head == tail){ tail = temp; head = temp; m[key] = head; return ; } tail = tail->prev; temp->next = head; head->prev = temp; head = temp; head->val = value; m[key] = head; return ; } } else { struct Node* temp = m[key]; if (temp == head) { temp->val = value; return; } if(temp == tail){ tail = temp->prev; } temp->prev->next = temp->next; if (temp->next != NULL) { temp->next->prev = temp->prev; } temp->next = head; head->prev = temp; temp->val = value; head = temp; return ; } return ; } }; /** * Your LRUCache object will be instantiated and called as such: * LRUCache* obj = new LRUCache(capacity); * int param_1 = obj->get(key); * obj->put(key,value); */
@GuptaHarshHemant6 ай бұрын
thanks striver
@SoRandominfo6 ай бұрын
U missed LFU cache video?
@brokegod58716 ай бұрын
He solved it before in an older video, you can see in the playlist
@akhilesh_ku6 ай бұрын
See down 😅 , KZbin suggesting you
@maverick_87075 ай бұрын
He has included in the playlist at last
@kanishasiva67316 ай бұрын
Striver 💯🙏💗
@iamnottech89186 ай бұрын
mojj krdi bhaiya
@DeadPoolx17123 ай бұрын
UNDERSTOOD;
@atulwadhwa1922 ай бұрын
My approach using dummy node class Node{ public: int key,val; Node* next; Node* prev; Node(int key,int val){ this->key = key; this->val = val; next = NULL; prev = NULL; } }; class LRUCache { int size,capacity; Node* head; Node* tail; unordered_map mp; public: LRUCache(int capacity) { size =0; this->capacity = capacity; head = new Node(-1,-1); tail = new Node(-1,-1); head->next = tail; tail->prev = head; } void insertNodeAtEnd(Node* node){ // detachment of node Node* prevNode = node->prev; Node* nextNode = node->next; if(prevNode != NULL) prevNode->next = nextNode; // for new node prevNode would be null if(nextNode != NULL) nextNode->prev = prevNode; // for new node nextNode would be null // attachment of node at end Node* tailPrev = tail->prev; tailPrev->next = node; node->prev = tailPrev; node->next = tail; tail->prev = node; } int get(int key) { uj7i8if(mp.find(key) == mp.end()) return -1; Node* node = mp[key]; insertNodeAtEnd(node); return node->val; } void put(int key, int value) { if(mp.find(key)!=mp.end()){ Node* node = mp[key]; node->val = value; insertNodeAtEnd(node); } else{ Node* node = NULL; if(size == capacity){ node = head->next; mp.erase(node->key); node->key = key; node->val = value; // insertNodeAtEnd(node); } else{ size++; node = new Node(key,value); // insertNodeAtEnd(node); } insertNodeAtEnd(node); mp[key] = node; } } }; /** * Your LRUCache object will be instantiated and called as such: * LRUCache* obj = new LRUCache(capacity); * int param_1 = obj->get(key); * obj->put(key,value); */
@abhinavabhi356829 күн бұрын
Understood
@AbhishekKumar-td5zu22 күн бұрын
understood!!
@mayanksaini48276 ай бұрын
kya haal h striver bhai k👀👀 ?
@Aman-Gairola5 ай бұрын
he forgot change afterhead->prev = node in insert funciton