DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,864 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for 6 new challenges
Ilya Nevolin
Ilya Nevolin

Posted on

6 new challenges

Ranked mode just got 6 new challenges, 4 hard and 2 medium ones.
I think the most interesting one is the implementation of an LRU (least recently used) cache structure. There are also 3 challenges related to the reverse Polish notation, which is a must-know for software engineers.

Below is a mysterious function, can you solve it?

function singleNumber(nums) {
  let ret = 0;
  for (let index = 0; index < nums.length; index++) {
    const element = nums[index];
    ret = ret ^ element;
  }
  return ret;
}

let A = singleNumber([2,3,4,3,2,5,1,5]);
// A = ?
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Classic DEV Post from 2020:

js visualized

πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! πŸ₯³

Happy coding!