- 博客(8)
- 资源 (7)
- 问答 (3)
- 收藏
- 关注
原创 numpy库常用函数记录(不断更新)
numpy常用函数记录 arange([start, ] stop[, setp,], dtype = None): 该函数返回的是一个ndarray类型数据,而不是list类型数据,该函数中start参数用于指定创建数组的起始位置,stop用于指定终止位置,step指定步长,创建的数组是[start, stop),即包含起始位置元素但不包括终止位置元素,该函数与range([start, ] s
2016-03-22 23:25:36 776
原创 LeetCode OJ --- Regular Expression Matching
题目描述Implement regular expression matching with support for ‘.’ and ‘*’.‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element.The matching should cover the entire input st
2016-03-22 12:10:46 374
原创 LeetCode OJ ---- Reverse Integer
Reverse Integer题目描述:Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321code(c++):法一:int reverse(int x) { int max = (numeric_limits<int>::max)();
2016-03-08 23:09:45 318
原创 python中一些常见的针对字符串的操作
python中一些常见的针对字符串的操作 ascii操作 ord(char ): 参数为一个字符,return该字符对应的ascii码 chr(int ): 参数为一个整数,return该整数在ascii码中对应的字符 索引 字符串分片索引都是左闭右开,即s[i,j]为[i,j)s[i, j]为[i,j),从第i个元素开始(包括第i个元素)到第j个元素结束(不包括第j个元素)
2016-03-08 15:55:34 877
原创 LeetCode OJ ---- Longest Palindromic Substring
题目描述Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.code(c++)class Solution
2016-03-04 18:19:28 323
原创 矩阵求导
矩阵求导求导运算向量函数对实值求导定义向量函数y=⎡⎣⎢⎢⎢⎢⎢y1y2⋮ym⎤⎦⎥⎥⎥⎥⎥\mathbf y = \begin{bmatrix} y_1 \\ y_2 \\ \vdots\\ y_m \end{bmatrix} 那么我们有向量函数y\mathbf y对实值xx求导得:δyδx=⎡⎣⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢δy1δxδy2δx⋮δymδx⎤⎦⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥\frac{\delta
2016-03-01 20:41:39 744
原创 ASCII表
ASCII表 ASCII值 控制字符 ASCII值 控制字符 ASCII值 控制字符 ASCII值 控制字符 0 NUL 32 space 64 @ 96 ` 1 SOH 33 ! 65 A 97 a 2 STX 34 “ 66 B 98 b 3 ETX 35
2016-03-01 17:30:50 592
原创 LeetCode OJ ---- Longest Substring Without Repeating Characters
题目描述Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the length is 3. F
2016-03-01 17:06:00 329
TA创建的收藏夹 TA关注的收藏夹
TA关注的人