Insert Delete Getrandom O(1) - Duplicates allowed || Leetcode

preview_player
Показать описание

NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. Pepcoding has taken the initiative to provide counselling and learning resources to all curious, skillful and dedicated Indian coders. This video is part of the series to impart industry-level web development and programming skills in the community.

 

We also provide professional courses with live classes and placement opportunities.

 

.

.

.

Happy Programming !!! Pep it up

.

.

.

#pepcoding #code #coder #codinglife #programming #coding #java #freeresources #datastrucutres #pepcode #competitive #competitiveprogramming #softwareengineer #engineering #engineer
Рекомендации по теме
Комментарии
Автор

One insight I’d like to share :
If you put set.remove(remidx) after swapping then you will get wrong answer (consider duplicate element case)
In previous question order of removing index does not matter but here it will matter
Awesome explanation sir

LegitGamer
join shbcf.ru