Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Over 755+ JavaScript solutions to various LeetCode problems

License

NotificationsYou must be signed in to change notification settings

Barklim/leetcode-javascript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my way for learning algorithms on JS.

Repository with prepared empty tasks for training inExample folder with test cases.

/** * 1. Two Sum * https://leetcode.com/problems/two-sum/ * Difficulty: Easy * * Given an array of integers `nums` and an integer `target`, return indices * of the two numbers such that they add up to `target`. * * You may assume that each input would have exactly one solution, and you * may not use the same element twice. * * You can return the answer in any order. *//** * @param {number[]} nums * @param {number} target * @return {number[]} */var twoSum = function (nums, target) {  };const example1 = twoSum([2, 7, 11, 15], 9); // [0,1]const example2 = twoSum([3, 2, 4], 6); // [1,2]const example3 = twoSum([3, 3], 6); // [0,1]console.log(example1);console.log(example2);console.log(example3);

Test cases

Test cases is groupped inderections for learning in propper order how it recommended inneetcode

example    0.ArraysHash    1.TwoPointers    ...    18.MathGeometry

Links

List of solutions

This repo is Copy ofleetcode-javascript

About

Over 755+ JavaScript solutions to various LeetCode problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp