3 Approaches se Problem Solve kiya hai, Bataiye fr, Maja Aaaya...
@pranavmittal96198 ай бұрын
Yes why not
@shrishtdev99618 ай бұрын
last wala method shi tha bhaiya❤❤❤❤❤
@shrishtdev99618 ай бұрын
last wala method shi tha bhaiya❤❤❤❤❤
@shrishtdev99618 ай бұрын
last wala method shi tha bhaiya❤❤❤❤❤
@be_a_DT7 ай бұрын
Thank you sir ! Really Helpful
@SajanKumar-ef1ur8 ай бұрын
the mentor , the instructor , specility - chamka dena concept ko , selfless, Thank you
@GamingArenaaa8 ай бұрын
Easiest DSA topic till now💯💯🤟🤟🔥🔥
@kapilkhandelwal488 ай бұрын
mza aa agya bhaiya itne dino baad lecture dekh k
@Pallab018 ай бұрын
3:Kth largest element in a stream: vector kthLargest(int k, int arr[], int n) { // code here //using min_heap priority_queuep; vectorans; for(int i=0;i
50:33 Homework - kth largest element in a stream vector kthLargest(int k, int arr[], int n) { // code here vector ans; priority_queue pq; for(int i=0; i
@punitsharma5843 ай бұрын
best approaches❤❤❤❤❤❤✌✌
@universalmeditationmusic92993 ай бұрын
nice series ❤
@aman_kumar91463 ай бұрын
thanks bhayiya for such great content
@Abc-rz4ps6 ай бұрын
Best teacher !!! 🙏🙏🙏
@mehwishzehra1356Ай бұрын
chamak gaya bhai.❤️
@SmritiSharma-vv7ib3 ай бұрын
Amazing Negi bhaiiii
@manish_kumar_iitg2 ай бұрын
3: Kth largest element in a stream:- vectorans(n); priority_queue p; for(int i = 0; i
@hiteshsharma50348 ай бұрын
Gud mrng bhaiya
@12krishna_creator8 ай бұрын
Chamak gya bhaiya 🎉🎉🎉🎉🎉
@ankitchoudhary29148 ай бұрын
don't know why but ajj ka class kuch jyada interesting thi😎😎😎😎😎
@tradun.s97605 ай бұрын
best dsa playlist
@RohitSharma-wu8teАй бұрын
Rohit bhai tussi great ho
@sdtedit51658 ай бұрын
bhaiya aap ni hote to pata ni hamara kya hota itna accha content log apne paid cources me bhi nahi dete
@VineetDixit2 ай бұрын
thanks for the lecture
@AbhishekKumar-vd1po6 ай бұрын
great video
@codeadityavyshnav30184 ай бұрын
great sir
@sirfrozenpenguin54865 ай бұрын
Nice Video Sir
@12krishna_creator8 ай бұрын
Chammak gya hai 🎉🎉🎉🎉🎉 thank you
@JaiShreeRam_A15 ай бұрын
mzaa aaa gyaaaa BHAIYA
@mahimsunny-p1gАй бұрын
vector kthLargest(int k, int arr[], int n) { priority_queuep; vectorans; for(int i=0;i
@tradeiteasyy4 ай бұрын
Loved it
@asad_iliyas6 ай бұрын
Interesting
@heetpatel30376 ай бұрын
Jai shree Ram ❤️ kya hi ajab padhato ho bhaiya bohot sahi please demotivate mat hona Arjuna ki tarah bas laksh par focus kijiye
@sonakshipatel-Tp7 ай бұрын
Nice bhaiya 🎉
@KaranSuthar_288 ай бұрын
Maza aa gaya thank you bhaiya
@saumyachauhan1746 ай бұрын
superb bhaiya♥♥
@allinonemoviesyt8 ай бұрын
59:23 Homework : Time Complexity :- 1. sabse pehle hum K1 elements ko priority queue me daalege to uska time time compleity hoga = O(K1logK1) 2. fir (N-K1) elements ko top elements se compare krege aur insert krege heap me , to uska time complexity hoga = O((N-K1)logK1) 3. fir hum (K2-1) elements ka new priority queue bnayege uska time complexity hoga = O((K2-1)log(K2-1)) 4. fir hum (N-K2+1) elements ko top elements se compare krege aur insert krege heap me , to uska time complexity hoga= O((N-K2+1)log((K2-1))) 5. fir hum K1 elements waale heap ke elements ka sum nikalege uska time complexity hoga = O(K1logK1) 6. fir hum K2-1 elements waale heap ke elements ka sum nikalege uska time complexity hoga = O((K2-1)log(K2-1)) overall time complexity in sb ka addition hoga Space Complexity :- 1. K1 elements ka priority queue bnayege to space use hoga = O(K1) 2. K2-1 elements ka priority queue bnayege to space use hoga = O(K2-1) overall space complexity hoga = O(K1 + K2 -1)
@karankumar39838 ай бұрын
Thanks buddy I
@saumyachauhan1746 ай бұрын
time complexiety mei insertion and deletion dono hoga na to 2logk1 and 2 log(k2-1) karenge na?
@bharatmalik27568 ай бұрын
chamak gya bhaiya 😎
@game-pc7ei7 ай бұрын
Chamak gya bhaiya 😃
@rejaulislam25932 ай бұрын
alhamdulillah chamak gaya
@Aniruddha_Mukherjee8 ай бұрын
Problem 2 : ________________________________________ class Solution { public: int findKthLargest(vector& nums, int k) { priority_queue pq; for(int i = 0; i
@amorphous8826Ай бұрын
Thank you sir
@pranavmittal96198 ай бұрын
sahi bol rahe maine toh 3 lakh mahine ka socha h package 25 students h mere college se 40+ lpa ke package wale 2024 me
@manasagarwal93413 ай бұрын
maza aagya bhaiya❣
@ParvezKhan-mj7yt3 күн бұрын
Thanks bro🙏🙏
@seekingsoul8718 ай бұрын
Bhaiya chamak gaya.
@ShivshankarKumaryadav-m4f19 күн бұрын
1:08:02 tak bhaiya persent. atendance please😊😊
@itshirdeshk8 ай бұрын
Time and space complexity of last question: Time Complexity -> O(nlogk2) Space Complexity -> O(k1 + k2) -> O(k2), if you are using priority queue || O(1), if you are using step-down approach.
@sayanghosh2018Ай бұрын
❤
@be_a_DT7 ай бұрын
Thank You Sir !
@abhinayjangde4 ай бұрын
1:06:25 Sum of elements between k1'th and k2'th smallest elements | Bhaiya Maine Aise banaya hai long long sumBetweenTwoKth( long long A[], long long N, long long K1, long long K2) { // Creating Min Heap priority_queue pq; for(int i=0; i
@Aniruddha_Mukherjee8 ай бұрын
Good morning Bhaiayaji 🥰🥰
@CoderArmy98 ай бұрын
Good Morning Boss
@AnkushKumar-kv7zm7 ай бұрын
chamak gya bhaiya
@saumyachauhan1746 ай бұрын
by approach of quick select: class Solution { public: int findKthLargest(vector& nums, int k) { int left = 0, right = nums.size() - 1, kth; while (true) { int idx = partition(nums, left, right); if (idx == k - 1) { kth = nums[idx]; break; } if (idx < k - 1) { left = idx + 1; } else { right = idx - 1; } } return kth; } private: int partition(vector& nums, int left, int right) { int pivot = nums[left], l = left + 1, r = right; while (l pivot) { swap(nums[l++], nums[r--]); } if (nums[l] >= pivot) { l++; } if (nums[r]
@techmjo20078 ай бұрын
Bhaiya Hashing Playlist wali Video kb Aayengi ???
@mohit62158 ай бұрын
Waiting for baap playlist of Hashmaps
@vinodbarti92377 ай бұрын
thnks bhaiya 😄
@sayyedtaimoorshah63458 ай бұрын
damaka daar
@sabhyaa6 ай бұрын
best!
@Ajkr26 ай бұрын
bhaiya you r god
@VinuSawant-z1k8 ай бұрын
Bhaiya App Dsa Series Puri Complete Karva Doge Na😅❤️
@ahmadjawwad39834 ай бұрын
love u bhai apka
@surajadhikari.2 ай бұрын
Present till end bhaiya
@nakulparmar1266 күн бұрын
✨✅📈
@AMANKUMAR-rz3fu2 ай бұрын
Ok bhaiya
@akshaythakur423117 сағат бұрын
Last tak❤
@ChandanKumar-rv5xw2 күн бұрын
🔥🔥
@gajendrasinghdhaked5 ай бұрын
🤩
@PradeepKumar-bc1ez4 ай бұрын
Mja aaya
@Harshmishra00078 ай бұрын
Ram Ram bahi❤
@arunfrancis59218 ай бұрын
I don't want to normalise the 3lpa package in this industry 😻😻
@akashkewat12198 ай бұрын
Done bhaiya.
@ParvezKhan-mj7yt3 күн бұрын
Bro thanks
@Noobiee_FPS8 ай бұрын
last tak dekha bhaiya
@Sanataniblood-mb5pu5 ай бұрын
❤❤❤❤❤
@ks.letsstartstudy.3994Ай бұрын
last tak😊
@machinecode2.0478 ай бұрын
Good morning sir
@YashSaini0078 ай бұрын
Bhaiya Radhe Radhe 🙏
@CoderArmy98 ай бұрын
Radhe Radhe bhai
@dealseasy3638 ай бұрын
Till the End
@datarobo17185 ай бұрын
class Solution { public: vector kthLargest(int k, int arr[], int n) { // code here vectorans(k-1,-1); priority_queuep; for(int i=0;ik){ if(p.top()
@Unifyall2 ай бұрын
last tak😀
@secretbhiya61768 ай бұрын
Bhiya Course main new aaya hoon mujhe pata nhi chal rha main coder's army start kahan se kroon koi syllabus ya topic based hai kya jhan se main iss sare lecture ko start krron
@SajjalFatima-yt6oq2 ай бұрын
Roadmap Time and space complexity for Data structure and algorithm. Arrays linkedList stack queues Hash tables or HashMaps Recursion (tail non tail) Tower of hanoi problem binary trees binary search trees Heaps Sorting algos including Merge Sort, Quick Sort, Heapsort graphs DFS BFS MST Djisktra shortest path algo Floyd warshall algo Now some advance and optional topics AVL trees B trees 2 3 trees Fibonacci heaps N heaps or n children heaps. Kruskals Union find for MST Strongly Connected components algo Directed Acyclic Graphs.
@SajjalFatima-yt6oq2 ай бұрын
Follow this roadmap and watch the playlists of these topics one by one
@ritwiksaha20096 ай бұрын
//Kth largest element in a stream vector kthLargest(int k, int arr[], int n) { vectorans(n); //this will store the answer //initialize ans with -1 for(int i=0; i
@nepalihoni92135 ай бұрын
opop
@RanjeetKumarceb8 ай бұрын
Last tak chamak gaya
@yashnatholia23328 ай бұрын
🙏🙏🙏
@anuragrajput46138 ай бұрын
Bhaiya guide kardo or kya karna he agae
@Ajay-ie4mr8 ай бұрын
last Tak
@shubhamkumarjha91928 ай бұрын
Good morning bhaiya ji
@CoderArmy98 ай бұрын
Good Morning Boss
@shrishtdev99618 ай бұрын
bhaiya mai hmesa nya hi sikhta huu
@vaishalichoudhary58 ай бұрын
Kth smallest Element using QUICK SELECT:) AVERAGE CASE T.C=O(KN) WORST CASE T.C=O(N^2) class Solution{ public: // arr : given array // l : starting index of the array i.e 0 // r : ending index of the array i.e size-1 // k : find kth smallest element and return using this function int calpivot(int arr[],int s,int e,int k){ int pos=s; for(int i=s;i