Message from JavaScript discussions

December 2020

— Ofc, no critics :p

— 

const map = new Map();
for (const ele of arr)
if (map.has(ele)) map.set(ele, map.get(ele) + 1);
else map.set(ele, 1);
for (const ele of arr)
if (map.get(ele) > 1) console.log(ele);

— Wouldn't that already count as O(2n)?

— I mean that's the simplest way I thought of too tbh xd but ya

— O(2n) is O(n)

— Dem

— banofbot

— 🔫 Abhishek has been kicked — the only way to get this user back is for admins to manualy unban in chat settings.

Voters who chose to kick:
solooo7, steve_py96, qwamivibes, watzon, Teja Vankadara
Powered by Todorant

Message permanent page

— TRGWII Check this size

— WTF is wrong with people

— Guess he normally codes in ook

— Not to mention this doesn't look healthy, visit a doc 🤷🏿‍♂️