Skip to content

Commit 430239e

Browse files
problme 68 added
1 parent 86adc6d commit 430239e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

problem68/problem68.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
Create a function that takes a sorted array of numbers and a target value as input. The function should find two numbers in the array that add up to the target value. Return an array containing the indices of the two numbers.
3+
4+
Example Input: ([1, 3, 6, 8, 11, 15], 9) Example Output: [1, 2] (numbers at indices 1 and 2: 3 + 6 = 9)
5+
6+
*/
7+
8+

problem68/problme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Problem 67:
2+
3+
### Create a function that takes a sorted array of numbers and a target value as input. The function should find two numbers in the array that add up to the target value. Return an array containing the indices of the two numbers.
4+
5+
**Example `Input: ([1, 3, 6, 8, 11, 15], 9)` Example `Output: [1, 2] (numbers at indices 1 and 2: 3 + 6 = 9)`**
6+
7+
8+

0 commit comments

Comments
 (0)