LeetCode 350. Intersection of Two Arrays II | JSer - JavaScript & Algorithm

preview_player
Показать описание
Preprocess the array, avoid searching every time.

Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode online. If you are interested, maybe we can learn together.
Рекомендации по теме
Комментарии
Автор

This is exactly the explanation I needed, but it doesn't work with test case [1, 2][1, 1]. I'm trying to figure out how to fix it

tylertheeuchiha