回答編集履歴
2
補足
test
CHANGED
File without changes
|
1
補足
test
CHANGED
@@ -11,3 +11,17 @@
|
|
11
11
|
np.argsort(scores)
|
12
12
|
|
13
13
|
```
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
----
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
上記の回答はキーの重複がないことを前提にしています。
|
22
|
+
|
23
|
+
numpyのsortはデフォルトでquicksortです。これはキーが重複した際の順序に関して何も保証がありません(stableではない)。mergesortはstableのようです。もし使う場合はこの点にご注意ください。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
[https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.sort.html#numpy.sort](https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.sort.html#numpy.sort)
|