斜风细雨作小寒,淡烟疏柳媚晴滩。入淮清洛渐漫漫。 雪沫乳花浮午盏,蓼茸蒿笋试春盘。人间有味是清欢。 苏轼 更多精彩内容请关注微信公众号 “ 优化与算法 ” 低秩矩阵恢复是稀疏向量恢复的拓展,二者具有很多可以类比的性质。首先,稀疏是相对于向量而言,稀疏性体现在待恢复向量中非零元素的数量远小于向量长度; ...
分类:
编程语言 时间:
2020-01-06 22:50:54
阅读次数:
85
描述: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexit ...
分类:
其他好文 时间:
2020-01-06 21:17:10
阅读次数:
92
tips:如同编程一样的语法 让步状语,代表前面不太重要,后面重要 even / although / even though/ anyway/ no matter/ whatever/ despite/ Nonetheless / still/ but/ where as/ however/ ye ...
分类:
其他好文 时间:
2020-01-06 09:53:00
阅读次数:
103
原题链接在这里:https://leetcode.com/problems/utf-8-validation/ 题目: A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: This ...
分类:
其他好文 时间:
2020-01-06 09:45:51
阅读次数:
73
PEP 20 The Zen of Python Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than compli ...
分类:
编程语言 时间:
2020-01-05 12:06:24
阅读次数:
108
go支持的数据类型bool类型数字类型有符号整型无符号整型浮点型复数类型//bool类型//bool表示布尔值,值为true或者falsefuncbooltest(){x:=truey:=falsefmt.Println("x",x,"y",y)}输出:xtrueyfalse数字类型分为:有符号整型、无符号整型、有符号整型int8表示8位有符号整型范围-128~127int16表示16位有符号整型
分类:
其他好文 时间:
2020-01-04 16:39:59
阅读次数:
78
总结出来的几种构造参数。 1) 默认构造函数。就是编译器自动生成的构造函数。以 Complex 类为例,它的原型为: Complex(); //没有参数 2) 普通构造函数。就是用户自定义的构造函数。以 Complex 类为例,它的原型为: Complex(double real, double i ...
分类:
编程语言 时间:
2019-12-30 22:48:15
阅读次数:
103
所有的程序都会有涉及到数据类型, go常用的基本数据类型 int, byte,float, array, string, struct, map, channel, interface, function,其余的rune,complex,uintptr用到的时候在查,一般很少用到。rune一般在处理 ...
分类:
其他好文 时间:
2019-12-30 15:59:15
阅读次数:
114
原题链接在这里:https://leetcode.com/problems/fibonacci-number/ 题目: The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequenc ...
分类:
其他好文 时间:
2019-12-30 09:22:36
阅读次数:
75
print("你好")# 标准数据类型# 五个:Number(数字),String(字符串),LIst(列表),Tuple(元组),Dictionary(字典)# 1.数字Number: int float complex m = 100 n = 5.20 # 2.字符串 person1 = "孙铖 ...
分类:
其他好文 时间:
2019-12-29 18:14:12
阅读次数:
76