Тёмный

LeetCode  

Anish
Подписаться 105
Просмотров 431
50% 1

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@hareshwedanayake7427
@hareshwedanayake7427 Месяц назад
Love the thumbnail art style. It’s very unique and you should stick to it
@anish9411
@anish9411 Месяц назад
Appreciate the feedback, Haresh! Glad you're enjoying the content
@akshaykumari5736
@akshaykumari5736 29 дней назад
I think you can also do this in O(1) space without using a map since the majority element occurs more than 50% of time. You can just use a simple count variable.
@anish9411
@anish9411 29 дней назад
Hey Akshay! Thanks for the feedback! Do we know a way to find an element that occurs over 50% of the time without going through at least n/2 elements?
Далее
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 70 тыс.
Китайка и Зеленый Слайм😂😆
00:20
To mahh too🫰🍅 #abirzkitchen #tomato
01:00
Просмотров 3,4 млн
LeetCode #55: Jump Game | Top Interview 150
13:57
Китайка и Зеленый Слайм😂😆
00:20