- 博客(5)
- 收藏
- 关注
原创 python-numpy 简介与练习
简介:numpy是python的一个扩展库,可通过pip install numpy下载并安装可用于存储与处理大型矩阵,其中包含的各种函数可用于矩阵计算与求解练习:生成练习所需要的矩阵,矩阵A中均为高斯元素,矩阵B为Toeplitz矩阵,Toeplitz矩阵介绍如下:通过横向赋值,对矩阵B的按行进行赋值来生成Toeplitz矩阵。(矩阵的首个元素取列向量的首元素)A.T可以对矩阵进行转置(注意没有...
2018-05-21 15:24:23 454
原创 (LeetCode) T14. Longest Common Prefix
Problem : Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string "".Solve :Thought :这道题属于easy的题,想要解题自然是不难,这道题有很多种算法,...
2018-05-18 20:15:48 228
原创 (LeetCode) T2. Add Two Numbers
Problem:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and ...
2018-05-16 19:41:32 204
原创 (LeetCode) T213. House Robber II
Problem:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first h...
2018-05-02 22:49:34 250
原创 (LeetCode) T94. Binary Tree Inorder Traversal
Problem:Given a binary tree, return the inorder traversal of its nodes' values.Solve:Thought:I solve it by using recursive solution.It's so easy to do it with its definition.So there is a tip like thi...
2018-05-02 17:55:21 226
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人