JS-4-all
Algo-questions
Flashcards
Lessons
Sign in
Get Started!
JS-4-all
Learn javascript anytime & anywhere, if you are a...
Features
Algorithm questions
Practice leetcode style questions.
Flashcards MCQ
Test your theory knowledge.
Javascript Lessons
Learn javascript basics
Try it out!
Two sum
Description
Solution
Given an array of integers
arr
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.
Output:
Run
Questions? Leave us a Message
Email:
Name:
Message:
Submit