Subarrays with K Different Integers | Count Subarrays Where Max Element Appears at Least K Times

  Рет қаралды 4,766

Coder Army

Coder Army

Күн бұрын

Пікірлер: 54
@CoderArmy9
@CoderArmy9 6 ай бұрын
Kaisa lagi sliding window ki series?
@seekingsoul871
@seekingsoul871 6 ай бұрын
master level bhaiya, graph series kab start hoga bhaiya?
@KunalPatil-il4je
@KunalPatil-il4je 6 ай бұрын
ek no. bhaiyaa, ground se uthaya hai ekdam
@_Keni-Chi
@_Keni-Chi 4 ай бұрын
jabardast!!! sadak se utha ke star bana diya
@MaheshwariLakde
@MaheshwariLakde 4 ай бұрын
maja aa gya bhaiya
@letsk9188
@letsk9188 6 ай бұрын
Or waqi aap best pdhate ho ye garibo ke liye gift h
@badarmygaming811
@badarmygaming811 6 ай бұрын
sir very easy atmost code (thak you sir) class Solution { public: int subarraysWithKDistinct(vector& nums, int k) { //at least(k)-at least(k-1) int total=0; unordered_mapferq; // use count of different integer int start=0,end=0,count=0; int n=nums.size(); while(endk &&start
@heetpatel3037
@heetpatel3037 5 ай бұрын
Jai shree Ram ❤ Ek dum op content bhaiya thankyou Dil se
@vibhumathur7951
@vibhumathur7951 6 ай бұрын
Bhai Aapka teaching style bahut badiya hai mai gate kai liye aapke videos prefer karta hu ek stock buy and sell problem hoti hai us par bi ek video banaye .
@ramsiyaram10082
@ramsiyaram10082 3 ай бұрын
thanks bhaiya for giving best Hindi Content of DSA in India
@Sanataniblood-mb5pu
@Sanataniblood-mb5pu 3 ай бұрын
Bhaiya bahut bahut thanks aap nhi hote toh DSA kaise samjh pata 🙏🏻🙏🏻
@letsk9188
@letsk9188 6 ай бұрын
Me aap hi ko recommend krta hu jyadatar bachcho ko
@ankushladani496
@ankushladani496 6 ай бұрын
Bhaiya Second problem ke solution ke aspas pahoch hi gaya tha but complete nahi ho paya koi nahi pass me pahuchne laga hu....😄😅🔥
@Noobiee_FPS
@Noobiee_FPS 6 ай бұрын
bhaiya mzaa aagya sliding window ke question mai sab chamak gya
@imran3509
@imran3509 6 ай бұрын
sliding window ki aur video chahiye thi aur problems in window sliding mein please rohit bhiaya
@Vardanaggarwal
@Vardanaggarwal 4 ай бұрын
informative video.
@ManojSinghRawat-x2w
@ManojSinghRawat-x2w 6 ай бұрын
bhaiya please increase the frequency of videos
@sumitvishwakarma1075
@sumitvishwakarma1075 6 ай бұрын
Bhaiya chamak gaya ekdum ❤ Bhai ab bas graphs aur greedy algorithms sikha do 😀
@Code_with_Tiwarijii
@Code_with_Tiwarijii 6 ай бұрын
Good Morning Bhaiya
@asad_iliyas
@asad_iliyas 5 ай бұрын
class Solution { public: int atMostK(vector& nums, int k){ int start=0,end=0; int ans=0; unordered_mapm; int total = 0; int n=nums.size(); while(endk && start
@_Keni-Chi
@_Keni-Chi 4 ай бұрын
thank u sirji
@ankushladani496
@ankushladani496 6 ай бұрын
3rd Problem with Atmost :- class Solution { public: int subarraysWithKDistinct(vector& nums, int k) { int start = 0 , end = 0 , total = 0; int count = 0; int n = nums.size(); unordered_map freq; while(end < n){ freq[nums[end]]++; if(freq[nums[end]] == 1) count++; while(count > k && start k && start
@mohit6215
@mohit6215 6 ай бұрын
Sliding Window OP (Chamak gya)
@code.spectra
@code.spectra 6 ай бұрын
hi everyone i am new to dsa i just want to know that can i follow this playlist and code with java or c++ does all concept are covered in it
@ankushladani496
@ankushladani496 6 ай бұрын
Bhaiya first ka code khudse implement kar diya...🙏💪
@karankumar3983
@karankumar3983 6 ай бұрын
Bhaiya learning++ ❤❤❤❤❤
@VishalKumar-yc3wr
@VishalKumar-yc3wr 6 ай бұрын
🔥🔥🔥🔥
@raunaksingh1047
@raunaksingh1047 6 ай бұрын
Ye apka C++ DSA wala playlist ka he continuation hai? Cause Mai confused hun kyuki title Mai lecture numbers nahi likhe hue hai
@Aniruddha_Mukherjee
@Aniruddha_Mukherjee 6 ай бұрын
Good morning bhaiya ji
@chanchalsoni7535
@chanchalsoni7535 4 ай бұрын
LIKE , SHARE, AND SUBSCRIBE GUYSSS......appreciate his hardwork😇
@chanchalsoni7535
@chanchalsoni7535 3 ай бұрын
@@Anonymous____________A721 why does it matter for you... Study first
@chanchalsoni7535
@chanchalsoni7535 3 ай бұрын
@@Anonymous____________A721 or vaise bhi terko kya chulll machi h... Jo gyan pel rha idr aake... Kaam se kaam rkh na apne..
@shubhamkumarjha9192
@shubhamkumarjha9192 6 ай бұрын
Good morning bhaiyaaaa ji.. 💖💖💖
@ankushladani496
@ankushladani496 6 ай бұрын
Maja Aa gaya Bhaiya....💯💪
@Kanishk-nx4xg
@Kanishk-nx4xg 3 ай бұрын
clear
@hiteshsharma5034
@hiteshsharma5034 6 ай бұрын
Good morning bhaiya 🎉
@PankajBabu03
@PankajBabu03 6 ай бұрын
good morning, BHAIYA
@YashSaini007
@YashSaini007 6 ай бұрын
Bhaiya Radhe Radhe 🙏
@Piyush_sahu.1
@Piyush_sahu.1 6 ай бұрын
Bhaiya app video ke views like per Dhyan mat do ham sab aapke sath hi hain❤
@sameerahmad3734
@sameerahmad3734 6 ай бұрын
Bhai uper screen me thoda blure aa rha h light ki wajah comparably phle ki video se ...light ko adjust kr lenge to better ho jayega
@ankushladani496
@ankushladani496 6 ай бұрын
Thanks Bhaiya...✅💯
@vikasrana_0007
@vikasrana_0007 6 ай бұрын
❤❤❤
@yadiencollection5073
@yadiencollection5073 6 ай бұрын
Ram ram bhaiya💪🙏🙏
@Harshmishra0007
@Harshmishra0007 6 ай бұрын
Ram ram bahi❤
@musiclamxinarayan
@musiclamxinarayan 6 ай бұрын
sir 60 days series wale videos knha milenge
@deepmeaningpicture1916
@deepmeaningpicture1916 6 ай бұрын
Bhaiya aap gate ki preparation krao na pls
@letsk9188
@letsk9188 6 ай бұрын
At last love you brother ❤
@letsk9188
@letsk9188 6 ай бұрын
Bhai jaan me abhi BST pr hu Baad me series ko private mt krna plz
@marveladda9761
@marveladda9761 6 ай бұрын
Done bhaiya
@itshirdeshk
@itshirdeshk 6 ай бұрын
Day 196 ✅🔥
@Kanishk-nx4xg
@Kanishk-nx4xg 3 ай бұрын
Homework Done - int subarraysWithKDistinct(vector& nums, int k) { //Atmost(k) - Atmpst(k-1) unordered_map freq; int start, end, n, count, total; start = end = count = total = 0; n = nums.size(); while(end < n) { freq[nums[end]]++; if(freq[nums[end]] == 1) count++; while(count > k) { freq[nums[start]]--; if(freq[nums[start]] == 0) count--; start++; } total += end - start + 1; end++; } freq.clear(); start = end = count = 0; k--; while(end < n) { freq[nums[end]]++; if(freq[nums[end]] == 1) count++; while(count > k) { freq[nums[start]]--; if(freq[nums[start]] == 0) count--; start++; } total -= end - start + 1; end++; } return total; }
@YashSaini007
@YashSaini007 6 ай бұрын
#180DaysOfCode
@anuragrajput4613
@anuragrajput4613 6 ай бұрын
Graph bhaiya
@binaryNomad_yt
@binaryNomad_yt 4 ай бұрын
Starting at 1st July'25 => { "Realistic target" : 'complete this series uptil here within next 6 months' }
Graph Data Structure | Real world Example to Explain Graph
47:53
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 3,2 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 133 МЛН
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 1,9 МЛН
Count Subarray sum Equals K | Brute - Better -Optimal
24:09
take U forward
Рет қаралды 335 М.
Coding Unbreakable Encryption in C | One-Time Pad
17:42
HirschDaniel
Рет қаралды 4,3 М.
Subarrays with K Different Integers - Leetcode 992 - Python
17:31
How Expensive Can Your Child's School Get in Bengaluru?
16:03
Wint Wealth
Рет қаралды 45 М.
Arpit Bhayani talks about real engineering for 1 hour straight
1:16:23
Greedy Algorithm From Basic To Advance
4:26:18
Coder Army
Рет қаралды 22 М.
Bridge in a Graph | Critical Connections in a Network
1:31:09
Coder Army
Рет қаралды 5 М.