Easy FAANG coding interview question | Intersection of Two Arrays | Leetcode 349

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

This solution is n². The "in" keyword is a short code for an iteration. You have not improved the code by casting arrays to sets.

karxxm
Автор

Why is there a time difference between arrays and sets? Not too familiar with Python yet

yomom
visit shbcf.ru