forked fromJoshCrozier/leetcode-javascript
- Notifications
You must be signed in to change notification settings - Fork0
Over 755+ JavaScript solutions to various LeetCode problems
License
NotificationsYou must be signed in to change notification settings
Barklim/leetcode-javascript
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 is groupped inderections for learning in propper order how it recommended inneetcode
example 0.ArraysHash 1.TwoPointers ... 18.MathGeometry
This repo is Copy ofleetcode-javascript
About
Over 755+ JavaScript solutions to various LeetCode problems
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- JavaScript100.0%