LeetCode problem #454 — 4Sum II (JavaScript)

Solution #1: Brute force

Solution #2: Map

--

--

--

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Future and Scope of React JS in the Market

How to create an Instagram Feed module for Vue Storefront

Building an accessible editor at Moonpig

Why React.js is so popular

Convert EPS to SVG in Node.JS

Maps & Sets in JavaScript

Some interview question for frontend developer

Building A Node CMS With KeystoneJS, Mongo DB, React and Redux Part III

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Duncan McArdle

Duncan McArdle

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

More from Medium

What is a Linked List? How to Implement Singly Linked List in JavaScript

A visual represenataion of a linked list

LeetCode 128. Longest Consecutive Sequence — JavaScript

C/C++ in-depth: Fundamentals of Arrays

Terminology of an Array

Algorithms: Dynamic Programming, House Robber