Construct String With Repeat Limit | Leetcode 2182

  Рет қаралды 2,984

Techdose

Techdose

Күн бұрын

Пікірлер
@jatinpabari
@jatinpabari 2 күн бұрын
Thanks for the detailed explanation
@techdose4u
@techdose4u 2 күн бұрын
You are welcome! :)
@Abhishek-e6d2c
@Abhishek-e6d2c 2 күн бұрын
loved it!!
@techdose4u
@techdose4u 2 күн бұрын
great :)
@kuriilo
@kuriilo 2 күн бұрын
Nice one!
@techdose4u
@techdose4u 2 күн бұрын
Thanks :)
@ujjwal_7531
@ujjwal_7531 Күн бұрын
my code was very close but was giving rte, now its cool
@techdose4u
@techdose4u Күн бұрын
very good :) keep it up 👍🏼
@AgastyaXV
@AgastyaXV Күн бұрын
Hey bhaiya, I just had a few questions and wanted to know where could i contact you To summarise it up, i just wanted to know that how many hours and how many months would it take to properly learn dsa and development etc. This is coming from a 3rd sem student currently doing his bachelors Thank you!
@techdose4u
@techdose4u Күн бұрын
Since you posted your question it will be good to make a post or video :)
@AgastyaXV
@AgastyaXV Күн бұрын
@@techdose4u yep that would be perfect as theres many people like me. So the questions basically are: For placements in for example faang companies, what is necessary Eg dsa till trees, or leetcode level medium etc development projects weather that be gamedev/web dev etc and primarily, till what topic/what level is it necessary to learn, how long will that take in terms of hours and how many months how could we practice mock interviews etc basically to sum it up, a step by step roadmap, and how to potentially balance out college+self study
@shekhar9595
@shekhar9595 22 сағат бұрын
sir aaj ke question ki video nhi aayi
@techdose4u
@techdose4u 22 сағат бұрын
aagyi :)
@shekhar9595
@shekhar9595 18 сағат бұрын
@@techdose4u Thanks Sir got it ♥. Sir just one request if you Hinglish in ur videos it will become more understandable
@techdose4u
@techdose4u 15 сағат бұрын
it is expected for software engg to know english. So, consider this as your practice for placement:)
@tmkocvines7348
@tmkocvines7348 2 күн бұрын
i was able to slve it by myself class Solution { public: string repeatLimitedString(string s, int l) { auto cmp = [](pair a, pair b) { return a.second < b.second; // Compare second element (char) }; unordered_mapm; // Priority queue with custom comparator priority_queue p(cmp); string ans; for(int i=0;ir) { string str(r, c); ans+=str; if(p.empty()==true) { break; } else { int a1=p.top().first; char c1=p.top().second; p.pop(); ans+=c1; p.push({a-r,c}); if(a1-1>0) p.push({a1-1,c1}); } } else { string str(a, c); ans+=str; } } return ans; } };
@techdose4u
@techdose4u 2 күн бұрын
nice
It’s time to move on from Agile Software Development (It's not working)
11:07
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Max Chunks To Make Sorted | Leetcode 769
16:43
Techdose
Рет қаралды 1,2 М.
Construct String With Repeat Limit - Leetcode 2182 - Python
14:50
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 641 М.
Scaling 7M+ Postgres Tables! by  Kailash Nadh CTO @zerodha
19:51
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 173 М.
LeetCode: The Worst Thing to Happen to Software Engineering
8:03
Coding with Dee
Рет қаралды 149 М.
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 588 М.
2024's Biggest Breakthroughs in Math
15:13
Quanta Magazine
Рет қаралды 292 М.