Skip to content

Commit a64b174

Browse files
committed
feat/ update readme
1 parent 0778f56 commit a64b174

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

16_sumSquares/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
# Exercise 13 - sumSquares
1+
# Exercise 16 - sumSquares
22

3-
Description of the exercise goes here.
3+
Write a function that sums squares of numbers in an arbitrarily nested array
4+
5+
```javascript
6+
SumSquares([1,2,3]); // 1 + 4 + 9 = 14
7+
SumSquares([[1,2],3]); // 1 + 4 + 9 = 14
8+
SumSquares([[[[[[[[[1]]]]]]]]]); // 1 = 1
9+
SumSquares([10,[[10],10],[10]]); // 100 + 100 + 100 + 100 = 400
10+
```

0 commit comments

Comments
 (0)