1.error: ‘strlen’ was not declared in this scope 方案:#include<cstring>//**<string.h>是不包括strlen的,要使用cstring** 2.error: size_t has not been declared据说这是因 ...
分类:
编程语言 时间:
2020-04-20 13:34:20
阅读次数:
129
Problem : A matrix is Toeplitz if every diagonal from top left to bottom right has the same element. Now given an M x N matrix, return True if and onl ...
分类:
其他好文 时间:
2020-04-20 12:00:41
阅读次数:
54
Paths on the treeProblem Descriptionbobo has a tree, whose vertices are conveniently labeled by 1,2,…,n.** There are m paths on the tree. bobo would l ...
分类:
其他好文 时间:
2020-04-19 18:07:45
阅读次数:
62
出错信息 update Project p set p.returnCount=:returnCount,p.passTime =:passTime, p.returnTime=:returnTime where p.id=:id Not all named parameters have been ...
分类:
Web程序 时间:
2020-04-19 15:09:38
阅读次数:
90
问题: 给定一个n,有数组1~n, 排列该数组,使得数组两两元素之间的差值有k种。 Example 1: Input: n = 3, k = 1 Output: [1, 2, 3] Explanation: The [1, 2, 3] has three different positive int ...
分类:
其他好文 时间:
2020-04-19 14:58:40
阅读次数:
57
5.4 Templates for Raw Arrays and String Literals 5.4 原始数组和字符串字面量的模板 When passing raw arrays or string literals to templates, some care has to be taken ...
分类:
编程语言 时间:
2020-04-19 14:50:40
阅读次数:
70
The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ag ...
分类:
其他好文 时间:
2020-04-19 10:48:26
阅读次数:
73
Vagrant+virtualBox 1、准备工作 1)Vagrant下载 https://www.vagrantup.com/downloads.html 2)Virtualbox 5.1下载 https://www.virtualbox.org/wiki/Download_Old_Builds_ ...
分类:
其他好文 时间:
2020-04-19 00:57:57
阅读次数:
205
Problem : Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: ...
分类:
其他好文 时间:
2020-04-18 22:43:40
阅读次数:
74
/** * The number of times this list has been <i>structurally modified</i>. * Structural modifications are those that change the size of the * list, or ...
分类:
编程语言 时间:
2020-04-18 18:41:57
阅读次数:
99