site address:
leetcodejavascript.com/solutions/4sum redirected to: leetcodejavascript.com/solutions/4sum
site title:
#18 - 4Sum - LeetCode JavaScript Solutions
|
|
|
Our opinion (on Wednesday 18 November 2026 23:44:19 UTC):
- no comments
|
|
|
|
Meta tags:
description= Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that: 0 <= a,...;
keywords= leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions;
author= LeetCodeJavascript.com;
Headings (most frequently used words):
18, 4sum, problem, description, solution,
Text of the page (most frequently used words):
nums (31), high (9), low (9), target (5), while (5), return (4), let (4), number (3), result (3), length (3), sum (3), array (3), leetcodejavascript (2), com (2), param (2), const (2), for (2), else (2), the (2), all (2), view (2), github (2), leetcode (2), 4sum (2), solutions (2), 2025, josh, crozier, var, foursum, function, sort, push, solution, you, may, answer, any, order, and, are, distinct, given, integers, unique, quadruplets, such, that, problem, description, two, pointers, sorting, medium, back, star, javascript,
Text of the page (random words):
18 4sum leetcode javascript solutions leetcodejavascript com star on github back to all solutions 18 4sum medium view on leetcode view on github array sorting two pointers problem description given an array nums of n integers return an array of all the unique quadruplets nums a nums b nums c nums d such that 0 a b c d n a b c and d are distinct nums a nums b nums c nums d target you may return the answer in any order solution param number nums param number target return number var foursum function nums target const result nums sort a b a b for let i 0 i nums length 3 i for let j i 1 j nums length 2 j let high nums length 1 let low j 1 while low high const sum nums i nums j nums low nums high if sum target result push nums i nums j nums low nums high while nums low nums low 1 low while nums high nums high 1 high low high else if sum target low else high while nums j nums j 1 j while nums i nums i 1 i return result 2025 leetcodejavascript com josh crozier
|
|
| Thumbnail images (randomly selected): * Images may be subject to copyright. | |  |
No Images
|
Verified site has: 4 subpage(s). Do you want to verify them? Verify pages:
|
|
|
The site also has 3 references to external domain(s).
|
The site also has 1 references to other resources (not html/xhtml )
|
Pages verified in the last hours (randomly selected):
|
|
Top 50 hastags from of all verified websites.
| |
|
|
|
|
|
|
Load Info| page size | 2924 | | load time (s) | 0.199219 | | redirect count | 1 | | speed download | 14693 | | server IP | 188.114.97.0 |
|
|
|
|
|
|
|
|
* Image may be subject to copyright.
|
|