Skip to content

Commit d130d89

Browse files
committed
solution only works for a 1d array
1 parent f440691 commit d130d89

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

100 Numpy exercises no solution.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@
860860
"cell_type": "markdown",
861861
"metadata": {},
862862
"source": [
863-
"#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)"
863+
"#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)"
864864
]
865865
},
866866
{

100 Numpy exercises no solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ np.sqrt(-1) == np.emath.sqrt(-1)
236236

237237

238238

239-
#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)
239+
#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)
240240

241241

242242

100 Numpy exercises.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@
10281028
"cell_type": "markdown",
10291029
"metadata": {},
10301030
"source": [
1031-
"#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)"
1031+
"#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)"
10321032
]
10331033
},
10341034
{

100 Numpy exercises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ Z = np.zeros((16,16))
482482
print(Z)
483483
```
484484

485-
#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)
485+
#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)
486486

487487

488488
```python

0 commit comments

Comments
 (0)