LeetCode 380 | Insert Delete GetRandom O(1) | JavaScript | Live Coding

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

there is no need to assign the removing value to the end of the array, but overall it is optimal

ningliu
visit shbcf.ru