码迷,mamicode.com
首页 >  
搜索关键字:ever    ( 3292个结果
算法笔记_194:历届试题 翻硬币(Java)
目录 1 问题描述 2 解决方案 1 问题描述 问题描述 小明正在玩一个“翻硬币”的游戏。 桌上放着排成一排的若干硬币。我们用 * 表示正面,用 o 表示反面(是小写字母,不是零)。 比如,可能情形是:**oo***oooo 如果同时翻转左边的两个硬币,则变为:oooo***oooo 现在小明的问题 ...
分类:编程语言   时间:2017-05-09 13:50:32    阅读次数:205
The fruit in mid-summer
Probably giving upIs the only means to get closer to youProbably you will only think of meWhen I no longer meet youTime flies byThe fruit in mid-summe ...
分类:其他好文   时间:2017-05-09 13:49:14    阅读次数:237
转 JavaScript里的数组转化新方法Array.From
过去,我们使用各种各样的方法来将类似Array对象的东西(比如 arguments 和 NodeList) 转换成真的数值。比如下面这个: 将NodeList转换成数组 基本上,这些东西我们都可以使用Array.prototype.slice.call()这样的方法将arguments和NodeLi ...
分类:编程语言   时间:2017-05-09 11:31:42    阅读次数:199
String、StringBuffer与StringBuilder 复习回顾总结
1.三者在执行速度方面的比较:StringBuilder > StringBuffer > String 2.String <(StringBuffer,StringBuilder)的原因 String:字符串常量 StringBuffer:字符创变量 StringBuilder:字符创变量 从上面 ...
分类:其他好文   时间:2017-05-09 00:48:49    阅读次数:217
C 指针
理解指针定义 --存放地址 内存区的每一个字节有一个编号, 这就是“地址”。 如果在程序中定义了一个变量, 在对程序进行编译 时, 系统就会给这个变量分配内存单元。 在c程序里面有两种访问方式: 1. 是直接访问, 2是间接访问(a的箱子要是在b抽屉里)。 定义指针 深入理解: 将i 的内存地址20 ...
分类:其他好文   时间:2017-05-08 23:26:38    阅读次数:283
反转链表
在断裂之前将下一个节点保存下来 import java.util.Stack;public class Solution { public ListNode ReverseList(ListNode head) { if(head == null ) return null; ListNode pr ...
分类:其他好文   时间:2017-05-08 20:59:54    阅读次数:119
[ACM] POJ 3740 Easy Finding (DFS)
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16202 Accepted: 4349 Description Given a M×N matrix A. Aij ∈ {0, 1} (0 ≤ i < M, 0 ≤ j < N), ...
分类:其他好文   时间:2017-05-08 19:21:26    阅读次数:216
Android Activity属性
1 36 . . . 37 38 39 // 是否允许activity更换从属的任务,比如从短信息任务 切换到浏览器任务。 40 android:allowTaskReparenting=["true" | "false"] 41 42 // 是否保留状态不变, 比如切换回home, 再从新打开, ... ...
分类:移动开发   时间:2017-05-07 15:37:17    阅读次数:201
March 1 2017 Week 9 Wednesday
If you are serious giving up something, giving up is not serious at all. 如果你慎重地决定要放弃,那么放弃本身就没什么大不了的。 Life always has many things to bring us down. But ...
分类:其他好文   时间:2017-05-07 11:50:12    阅读次数:132
122. Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:其他好文   时间:2017-05-07 11:48:49    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!