Hi guys!
I used to practice algorithms in C++, but I apply for Front End job positions as well. I guess I need to operate with both languages for solving algorithmic problems :/
In C++ unordered_map is based on a hash table. What data structure should I use in JS? Should I assume to have some HashMap class implemented or just use an object? Access to object properties is also O(1).
Stack is like array push/pop. What about Queue? PrioriryQueue? For example, a BFS algorithm needs a queue.
Is it common to use typed arrays in js? I assume they are faster, but I didn't see them popular for problems solving at LeetCode.
I'll appreciate every answer a lot!