Leetcode 1838. Frequency of the Most Frequent Element | Logic Coding

preview_player
Показать описание
Let's slide the window :) I used to be very scared with sliding window problems since the right/left pointe idea could get messy. But now I love it. Cause practice makes perfect!
Рекомендации по теме
Комментарии
Автор

It would be better if you have used white board to explain intuition and approch, because you were just typing the code without explaining why we need to sort the array and use sliding window concept here.

Ashwanikumar-qrjj