Skip to content
Guest
Auto-Graded Challenges

Coding Practice Arena

Sharpen your algorithmic and language skills with instant live grading across JavaScript, TypeScript, Node.js, C, C++, Java 21, and C#.

Daily Streak

0 days

Challenges Solved

0 / 36

Difficulty Filter

JavaScriptHash MapsEasy

Two Sum Indices

Complete twoSum(nums, target) to return the two 0-based indices whose values sum to target in O(n) time. Print the results as shown.

Solution Editor

Expected Output

[0,1]
[1,2]

Your Output

Click “Run & Grade” to test your solution.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind