Skip to content

Commit 2eb6f8f

Browse files
Merge pull request #3 from ikrommyd/fix-numpy-puzzle-3
fix: numpy puzzle 3 solution
2 parents b470db8 + fe07049 commit 2eb6f8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

site/files/solutions-NO-PEEKING.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
{
311311
"data": {
312312
"text/plain": [
313-
"9564.961050220914"
313+
"21.237210568991465"
314314
]
315315
},
316316
"execution_count": 8,
@@ -319,7 +319,7 @@
319319
}
320320
],
321321
"source": [
322-
"np.sum(np.sqrt((x[1:] - x[-1:])**2 + (y[1:] - y[-1:])**2), axis=0)"
322+
"np.sum(np.sqrt((x[1:] - x[:-1])**2 + (y[1:] - y[:-1])**2), axis=0)"
323323
]
324324
},
325325
{

0 commit comments

Comments
 (0)