Construct String With Repeat Limit | Leetcode 2182

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

Techdose

Techdose

Күн бұрын

Пікірлер: 17
@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 14 сағат бұрын
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
Max Chunks To Make Sorted | Leetcode 769
16:43
Techdose
Рет қаралды 1,1 М.
Concepts of Heap | Understanding heap
12:32
Techdose
Рет қаралды 81 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 40 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 44 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 61 МЛН
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 173 М.
If you can solve this, you can be an engineer.
8:40
Ali the Dazzling
Рет қаралды 98 М.
Construct String With Repeat Limit - Leetcode 2182 - Python
14:50
Move Pieces to Obtain a String | Leetcode 2337
19:53
Techdose
Рет қаралды 5 М.
Minimum Limit of Balls in a Bag | Leetcode 1760
22:31
Techdose
Рет қаралды 4,9 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 40 МЛН