摘要: NumPy数组的维数称为秩(rank),一维数组的秩为1,二维数组的秩为2,以此类推。在NumPy中,每一个线性的数组称为是一个轴(axes),秩其实是描述轴的数量。比如说,二维数组相当于是一个一维数组,而这个一维数组中每个元素又是一个一维数组。所以这个一维数组就是NumPy中的轴(axes),而轴 阅读全文
posted @ 2018-01-08 19:00 二十四桥明月夜33 阅读(11981) 评论(2) 推荐(4) 编辑
摘要: 4. Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The 阅读全文
posted @ 2018-01-08 10:13 二十四桥明月夜33 阅读(220) 评论(0) 推荐(0) 编辑