Overview
Lists notes with type: code-puzzle in a catalogue. Open one to
write and run your solution. Python and JavaScript run locally in a sandbox
with no access to your vault or the network, and stop after 5 seconds.
Puzzle format
---
type: code-puzzle
id: two-sum
title: Two Sum
difficulty: easy
tags: [array]
languages: [python, javascript]
---
Return the indices that add to the target.
## Starter code
```python
def two_sum(numbers, target):
pass
```
## Tests
```python
assert two_sum([2, 7], 9) == [0, 1]
```
Settings
None.
Commands
- Open CodePuzzle
Your data
Puzzles are notes in your vault, usually in CodePuzzles/. Your
solutions are in .noxical/plugins/code-puzzle/solutions.json.