Leetcode - Find All Duplicates in an Array (Python)

preview_player
Показать описание
August 2020 Leetcode Challenge
Leetcode - Find All Duplicates in an Array
Рекомендации по теме
Комментарии
Автор

This solution is so elegant! Just perfect for my assignment

lym
Автор

what if array size is greater than max array element?

vinodkumarkopperla
Автор

My question is, if the list is filled with strings what do I replace the ads() with?

mercedg
Автор

Hello, my question is similar to this. I need to find the value that appears least in a list. For example: In [1, 1, 2, 3, 3, 4, 4, 4, , 5] I need to print 2 and 5 because they appear the least.

emperorscotty
Автор

Hi, is it using extra space in your solution when you initialize an output array?

ericzhang
visit shbcf.ru