majority element leetcode | majority element leetcode python | May Day 6

preview_player
Показать описание
Please like the video, this really motivates us to make more such videos and helps us to grow. thecodingworld is a community which is formed to help fellow student and professionals looking to crack the “coding interviews”.

We love solving and sharing problems which are frequently asked in technical interviews and voted by community at various websites.

✅ For more and upcoming updates join our community

#leetcode #python
Рекомендации по теме
Комментарии
Автор

Based on April pattern questions, without even thinking much my go to choice was to make use of dictionary and had submitted the same. But your sorting solution is even better. Thanks for the insight.

swagh
Автор

Hi, I liked the video but you just explained the "How" part for method 2, Please explain "why" that method works out next time. Thanks :)

atharvakango
Автор

Your sorting merhod does not work on every list. I have tried 3-4 examples but it only works on 1. Like
Ex- [7, 5, 3, 9, 5, 8, 3, 3, 6, 3, 4] o/p should be 3 but i am getting 5

merajalam
visit shbcf.ru