码迷,mamicode.com
首页 >  
搜索关键字:code    ( 108667个结果
essential c++ source code part 1
#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
第2章 排序 | 第14节 重复值判断练习题
题目 解析 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
python--排序
冒泡排序 选择排序 快速排序 归并排序 插入排序 堆排序 ...
分类:编程语言   时间:2018-06-06 23:59:24    阅读次数:369
【sping揭秘】17、@Around,@Introduction
@Introduction 我们先首先明确一点,这个注解是用来给原来的对象添加新的行为逻辑的 说白了就是给类扩展自定义方法 我们定义个类,作为添加方法的目标 好的,现在如果我们想给这个空的对象,添加一个,或者许多方法,怎么办呢??? 不急,我们先把要进行添加的方法准备好 这里是一个接口,里面有个do ...
分类:其他好文   时间:2018-06-06 23:55:54    阅读次数:186
urllib使用四--urlencode
urllib.urlencode 把字典数据转换为URL编码 编码后跟在URL后面传递参数: 逆向 在urlparse包里 urlparse.parse_qs方法--返回字典 运行结果: ...
分类:Web程序   时间:2018-06-06 23:48:44    阅读次数:292
第k个素因子只有3 5 7 的数
题目描述 有一些数的素因子只有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
机器学习之路: tensorflow 自定义 损失函数
git: https://github.com/linyi0604/MachineLearning/tree/master/07_tensorflow/ ...
分类:其他好文   时间:2018-06-06 23:41:18    阅读次数:343
371. Sum of Two Integers
不能用加减法,想到用位运算解题。 本题思路可见 http://www.cnblogs.com/grandyang/p/5451942.html 关于位运算部分总结 可见 https://blog.csdn.net/fly_yr/article/details/51144272 ...
分类:其他好文   时间:2018-06-06 23:39:54    阅读次数:162
跟阿铭学linux之三使用putty、xshell远程连接Linux及密钥认证
一、本节课要用到的两款软件分别是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
B.1013 数素数 (20) --暴力代码
暴力代码 ...
分类:其他好文   时间:2018-06-06 23:39:30    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!