I was stuck at this question for so long and this solution made me love the question
@singhalvikash
3 жыл бұрын
Your explanation is one of the best on youtube on these subjects. Keep up the great work !
@Pepcoding
3 жыл бұрын
Glad to know that you liked the content and thank you for appreciating. The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos. So, keep motivating, keep learning and keep loving Pepcoding😊
@krantisambhav1471
Ай бұрын
Wow
@shree6665
3 жыл бұрын
the best explanation to question and solution both, understood thoroughly, thanks a lot, keep doing great work (Y)
@mrprime557
2 жыл бұрын
Great explanation ! Please confirm if the time and space complexity are O(n^2) and O(n) respectively. Thank you :)
@Pepcoding
2 жыл бұрын
Hope you love the explanation. For better experience and well-organised content Visit- nados.pepcoding.com You can post your query on community tab. Don't forget to follow us on Instagram instagram.com/pepcoding/
@mayur_madhwani03
2 жыл бұрын
I took every string sorted it and made it as key so the map was map m;
@Pepcoding
2 жыл бұрын
Good, for better experience and well organised content sign up on nados.io and keep learning.
@sachinpissay
3 жыл бұрын
else part me I think phri se list ko map me put karna padega eg: else { List list = map.get(key); list.add(str); map.put(key, list); }
@444not
3 жыл бұрын
You are a rockstar !
@mukultaneja7243
3 жыл бұрын
Sir, I am unable to understand the Sorting done in the ArrayList in such questions. I tried similar sorting in C++, but the some test cases are still not passing. Please tell what should I do ??
@ucguy4u
3 жыл бұрын
No need for else part, more concise for loop: for (String str : strings) { String key = getKey(str); if (!hm.containsKey(key)) { ArrayList list = new ArrayList(); list.add(str); hm.put(getKey(str), list); } hm.get(key).add(str); }
@amitupadhyay6511
2 жыл бұрын
IF THE NUMBER IS LESS THAN 0, ADD 26 TO IT. THATS THE MAIN HINT
Пікірлер: 17