Whether you are preparing to go on your next interview or just trying to sharpen your skills, sites like LeetCode.com give you a new way to learn and enhance your skills.
This repository is a collection of my solutions to coding examples.
In an effort to comply with Airbnb JavaScript Style Guide, we will use higher-order functions to iterate over arrays.
e.g.
// bad
for (let c of s) {}
// good
s.every((c) => {});
// best
const output = s.reduce((acc, cur) => acc + cur, 0)