- 博客(4)
- 收藏
- 关注
原创 高级编程技术第十二周作业:matplotlib练习
Exercise 11.1: Plotting a functionimport numpy as npimport matplotlib.pyplot as pltx = np.linspace(0,2,10000)y = np.power(np.sin(x-2),2)temp1 = np.power(x,2)temp2 = np.exp(-1 * temp1)y = y * te...
2018-05-26 11:30:58 282
原创 高级编程技术第十一周作业:numpy练习
Exercise 9.1: Matrix operations:import numpy as npfrom scipy.linalg import toeplitzn = 5m = 10A = np.random.normal(size=(n,m)) #服从正态分布的矩阵c = np.random.randn(10)r = np.random.randn(10)B = toepli...
2018-05-20 09:16:55 316
原创 python第九周作业2:LeetCode Unique Paths II
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bott...
2018-05-06 10:29:24 139
原创 python第九周作业1:LeetCode First Missing Positive
Given an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0]Output: 3Example 2:Input: [3,4,-1,1]Output: 2Example 3:Input: [7,8,9,11,12]Output: 1Note:Your ...
2018-05-06 10:27:37 184
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人