题目链接:http://ac.jobdu.com/problem.php?pid=1453 详解链接:https://github.com/zpfbuaa/JobduInCPlusPlus 参考代码: ...
分类:
其他好文 时间:
2017-04-24 22:59:17
阅读次数:
132
意图 - 每个函数的粒度都很小,被复用的机会就更大- 使高层函数读起来就像一系列注释- 如果函数是细粒度,覆写也会更容易 示例 ...
分类:
其他好文 时间:
2017-04-24 22:53:54
阅读次数:
139
题目描述 曹操平定北方以后,公元208年,率领大军南下,进攻刘表。他的人马还没有到荆州,刘表已经病死。他的儿子刘琮听到曹军声势浩大,吓破了胆,先派人求降了。 孙权任命周瑜为都督,拨给他三万水军,叫他同刘备协力抵抗曹操。 隆冬的十一月,天气突然回暖,刮起了东南风。 没想到东吴船队离开北岸大约二里距离, ...
分类:
其他好文 时间:
2017-04-24 22:53:20
阅读次数:
131
题目: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> ...
分类:
其他好文 时间:
2017-04-24 22:51:55
阅读次数:
147
小分享:我有几张阿里云优惠券,用券购买或者升级阿里云相应产品最多可以优惠五折!领券地址:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=ohmepe03 前言 之前我们系统学习了EntityFram ...
本题有两个难点: 1 大量的数据输入。没处理好就超时 - 这里使用buffer解决 2 因子分解的算法 a)暴力法超时 b)使用sieve(筛子),只是当中的算法逻辑也挺不easy搞对的。 数值N因子分解逻辑: 1 保存全部能够sqrt(N)范围内的质素 2 找到能够被N除尽的质素d, 然后用d去除 ...
分类:
其他好文 时间:
2017-04-24 21:10:08
阅读次数:
269
小分享:我有几张阿里云优惠券,用券购买或者升级阿里云相应产品最多可以优惠五折!领券地址:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=ohmepe03 上篇博文说过当我们定义的类不能遵循约定(Co ...
1.使用gson需添加的依赖: compile 'com.google.code.gson:gson:2.2.4' 2.初始化gson:Gson mGson = new Gson(); 3.创建封装类 4.解析时需要传入两个参数(json数据;封装实体类) 例:TextBean bean = mGs ...
分类:
其他好文 时间:
2017-04-24 21:06:34
阅读次数:
687
小分享:我有几张阿里云优惠券,用券购买或者升级阿里云相应产品最多可以优惠五折!领券地址:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=ohmepe03 本篇是在上一篇的基础上添加日志功能,并记录N ...
小分享:我有几张阿里云优惠券,用券购买或者升级阿里云相应产品最多可以优惠五折!领券地址:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=ohmepe03 背景介绍 本文将会示范如何在Windows系 ...