3 ms·But the leetcode one is a different question in that it guarantees only one duplicate element.by lmz 4y agoBut the leetcode one is a different question in that it guarantees only one duplicate element.