#include #include #include #include #include #include using namespace std; int main() { ifstream in_file("a.txt"); ofstream out_file("b.txt"); if (!in... ...
分类:
编程语言 时间:
2018-06-07 10:25:17
阅读次数:
216
题目 解析 C++ class Checker { public: bool checkDuplicate(vector a, int n) { // write code here if(n &A, int l, int r) { int dad = l, son = 2 dad + 1; whi ...
分类:
编程语言 时间:
2018-06-07 00:36:30
阅读次数:
201
冒泡排序 选择排序 快速排序 归并排序 插入排序 堆排序 ...
分类:
编程语言 时间:
2018-06-06 23:59:24
阅读次数:
369
@Introduction 我们先首先明确一点,这个注解是用来给原来的对象添加新的行为逻辑的 说白了就是给类扩展自定义方法 我们定义个类,作为添加方法的目标 好的,现在如果我们想给这个空的对象,添加一个,或者许多方法,怎么办呢??? 不急,我们先把要进行添加的方法准备好 这里是一个接口,里面有个do ...
分类:
其他好文 时间:
2018-06-06 23:55:54
阅读次数:
186
urllib.urlencode 把字典数据转换为URL编码 编码后跟在URL后面传递参数: 逆向 在urlparse包里 urlparse.parse_qs方法--返回字典 运行结果: ...
分类:
Web程序 时间:
2018-06-06 23:48:44
阅读次数:
292
题目描述 有一些数的素因子只有3、5、7,请设计一个算法,找出其中的第k个数。 给定一个数int k,请返回第k个数。保证k小于等于100。 测试样例: 3 返回:7 int findKth(int k) { // write code here if (k <= 0) return -1; vec ...
分类:
其他好文 时间:
2018-06-06 23:42:30
阅读次数:
851
git: https://github.com/linyi0604/MachineLearning/tree/master/07_tensorflow/ ...
分类:
其他好文 时间:
2018-06-06 23:41:18
阅读次数:
343
不能用加减法,想到用位运算解题。 本题思路可见 http://www.cnblogs.com/grandyang/p/5451942.html 关于位运算部分总结 可见 https://blog.csdn.net/fly_yr/article/details/51144272 ...
分类:
其他好文 时间:
2018-06-06 23:39:54
阅读次数:
162
一、本节课要用到的两款软件分别是putty、xshellputty下载地址:https://the.earth.li/~sgtatham/putty/latest/w64/putty.zipxshell下载地址:https://www.netsarang.com/download/down_form.html?code=622备注:putty是绿色免安装软件,小巧免费。xshell软件个人版是免费
分类:
系统相关 时间:
2018-06-06 23:39:48
阅读次数:
336