Travis build: 279
This commit is contained in:
@ -831,7 +831,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "a2f09e1423bde7161422814e3ecdb2ce77dac812df719ea60c37f55c06a06705"
|
"hash": "b271bd6034b0b38ee3e998f52e2512dea24266952f632987d77a916abc7597f3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1304,7 +1304,7 @@
|
|||||||
"fileName": "median.md",
|
"fileName": "median.md",
|
||||||
"text": "Finds the median of a list of numbers.\n\nSort the numbers of the list using `list.sort()` and find the median, which is either the middle element of the list if the list length is odd or the average of the two middle elements if the list length is even.\n\n",
|
"text": "Finds the median of a list of numbers.\n\nSort the numbers of the list using `list.sort()` and find the median, which is either the middle element of the list if the list length is odd or the average of the two middle elements if the list length is even.\n\n",
|
||||||
"codeBlocks": {
|
"codeBlocks": {
|
||||||
"code": "def median(list):\n list.sort()\n list_length = len(list)\n if list_length%2==0:\n return (list[int(list_length/2)-1] + list[int(list_length/2)])/2\n else:\n return list[int(list_length/2)]",
|
"code": "def median(list):\n list.sort()\n list_length = len(list)\n if list_length % 2 == 0:\n return (list[int(list_length / 2) - 1] + list[int(list_length / 2)]) / 2\n return list[int(list_length / 2)]",
|
||||||
"example": "median([1,2,3]) # 2\nmedian([1,2,3,4]) # 2.5"
|
"example": "median([1,2,3]) # 2\nmedian([1,2,3,4]) # 2.5"
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
@ -1313,11 +1313,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "a2f09e1423bde7161422814e3ecdb2ce77dac812df719ea60c37f55c06a06705",
|
"hash": "b271bd6034b0b38ee3e998f52e2512dea24266952f632987d77a916abc7597f3",
|
||||||
"firstSeen": "1570093337",
|
"firstSeen": "1570093337",
|
||||||
"lastUpdated": "1570169630",
|
"lastUpdated": "1577363941",
|
||||||
"updateCount": 7,
|
"updateCount": 8,
|
||||||
"authorCount": 4
|
"authorCount": 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user