12. 整数转罗马数字 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M 1000 例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。 27 写做 XXVI ...
分类:
其他好文 时间:
2020-04-07 18:46:47
阅读次数:
81
题目描述 In a village called Byteville, there are houses connected with N-1 roads. For each pair of houses, there is a unique way to get from one to anoth ...
分类:
其他好文 时间:
2020-04-07 18:17:31
阅读次数:
69
题目连接:https://leetcode-cn.com/problems/ugly-number-ii/solution/ 编写一个程序,找出第 n 个丑数。 丑数就是只包含质因数 2, 3, 5 的正整数。 示例: 输入: n = 10输出: 12解释: 1, 2, 3, 4, 5, 6, 8, ...
分类:
其他好文 时间:
2020-04-07 13:02:42
阅读次数:
71
1.通过外部文件导入数据表 2.通过填入数据生成数据表 3.检查数据表的维度:shape属性 结果输出 (6,6) 4.查看数据表信息 5.查看数据表数据格式:dtypes属性 6.空值检查isnull()函数(非空False,空True) 7.查看某列数据唯一值:unique()函数 8.查看列名 ...
分类:
编程语言 时间:
2020-04-07 12:56:07
阅读次数:
104
1.创建普通索引 创建一个普通索引时,不需要加任何UNIQUE、FULLTEXT或者SPATIAL参数。 下面创建一个表名为index1的表,在表中的id字段上建立索引。SQL代码如下: CREATE TABLE index1 (id INT , name VARCHAR(20) , sex BOO ...
分类:
数据库 时间:
2020-04-07 12:42:44
阅读次数:
105
题目描述 In a village called Byteville, there are $n$ houses connected with $n 1$ roads. For each pair of houses, there is a unique way to get from one to ...
分类:
其他好文 时间:
2020-04-07 00:16:06
阅读次数:
70
1、参考博客:https://blog.csdn.net/wang328452854/article/details/78486458 2、uCOS(也有人叫uC/OS)由美国人 Jean Labrosse在1992年编写的一个实时操作系统 3、uCOS特点: ①、可剪裁:有一个专门用来裁剪系统的配 ...
分类:
其他好文 时间:
2020-04-06 11:32:11
阅读次数:
77
Given 2 lists a and b. Each element is a pair of integers where the first integer represents the unique id and the second integer represents a value. ...
分类:
其他好文 时间:
2020-04-06 10:06:59
阅读次数:
72
"https://leetcode.com/problems/best time to buy and sell stock ii/" 给定一个数组,其中数组的第 i 个元素表示第 i 天的股票价格,你可以选择在其中一天买股票,然后再后面的某一天卖掉股票,求最大收益。(股票必须要先买才能卖) 这里可 ...
分类:
其他好文 时间:
2020-04-06 00:10:03
阅读次数:
82
// 面试题50(二):字符流中第一个只出现一次的字符 // 题目:请实现一个函数用来找出字符流中第一个只出现一次的字符。例如,当从 // 字符流中只读出前两个字符"go"时,第一个只出现一次的字符是'g'。当从该字 // 符流中读出前六个字符"google"时,第一个只出现一次的字符是'l'。 # ...
分类:
其他好文 时间:
2020-04-05 20:37:45
阅读次数:
63