码迷,mamicode.com
首页 > 其他好文
2016暑期选拔第一场20160709
A みねちゃんの修罗场 Time Limit: 5000 mSec    Memory Limit : 1024 KB  Problem Description みねちゃん是个成绩优秀大学二年级学生,本来是和像自己妹妹一般的青梅竹马一起过着普通的大学生活的,但某天却被校内公认的第一美人表白了。然而她的真实意图却是为了骗过众人而需要みねちゃん与她假扮情侣。被掌握了自己的某个“秘...
分类:其他好文   时间:2016-07-12 07:55:10    阅读次数:188
Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. Given a binary tree, return all root-to-leaf paths. Given a binary tree, return all root-to-leaf p ...
分类:其他好文   时间:2016-07-12 07:54:32    阅读次数:213
this 的工作原理
JavaScript 有一套完全不同于其它语言的对 this 的处理机制。 在五种不同的情况下 ,this 指向的各不相同。 全局范围内 当在全部范围内使用 this,它将会指向全局对象。 译者注:浏览器中运行的 JavaScript 脚本,这个全局对象是 window。 函数调用 这里 this  ...
分类:其他好文   时间:2016-07-12 07:52:48    阅读次数:382
git 几款好用的客户端工具
虽然git命令非常好用,但客户端UI工具掌握起来、使用起来更加容易。如果你不想用git命令的话,那就用UI工具代替吧。 下面介绍下几款好用的git工具 1、tortoiseGit for Mac (这个也有windows版本的) 2、sourceTree (这个也有windows版本的。撸主使用,觉 ...
分类:其他好文   时间:2016-07-12 07:54:20    阅读次数:233
Identical Binary Tree
Check if two binary trees are identical. Identical means the two binary trees have the same structure and every identical position has the same value. ...
分类:其他好文   时间:2016-07-12 07:53:20    阅读次数:224
设计模式--代理模式
存在一个固定的接口,包含一些特殊逻辑,且这个接口不满足这些特殊逻辑,采用代理模式将特殊逻辑集成到特殊的类中 抽象角色:通过接口或抽象类声明真实角色实现的业务方法。 代理角色:实现抽象角色,是真实角色的代理,通过真实角色的业务逻辑方法来实现抽象方法,并可以附加自己的操作。 真实角色:实现抽象角色,定义 ...
分类:其他好文   时间:2016-07-12 07:54:41    阅读次数:160
Leetcode 371. Sum of Two Integers
371. Sum of Two Integers 371. Sum of Two Integers Total Accepted: 10773 Total Submissions:20732 Difficulty: Easy Calculate the sum of two integers a a ...
分类:其他好文   时间:2016-07-12 07:51:31    阅读次数:155
Shape Factory
Factory is a design pattern in common usage. Implement a ShapeFactory that can generate correct shape. You can assume that we have only tree different ...
分类:其他好文   时间:2016-07-12 07:52:17    阅读次数:157
Serializable的序列化与反序列化
使用Serializable序列化,只要实现Serializable接口即可。一般情况下都会显示设置静态成员变量serialVersionUID为固定值。序列化时使用ObjectOutputStream写入,反序列化时使用ObjectInputStream读出。如此简单,谁都会。但这是我碰到复杂点的情况,特作以下总结:1、Serializable可继承:父类实现了序列化,子类也会自动实现序列化Per...
分类:其他好文   时间:2016-07-12 06:50:29    阅读次数:230
用IDEA追忆一下童年
用IDEA追忆一下童年最近带学生学习J2SE中的面向对象那章,晚上备课出教学作业的时候,突然想让学生们做一个简单的游戏,学习编程语言最大的动力莫过于兴趣,把你的想法,通过程序实现出来,让别人能够体验的你思维的结晶,这是一件很酷的事情。 首先,先给学生们定义一个简单的需求,我们来做一个文字版的超级玛丽~...
分类:其他好文   时间:2016-07-12 06:47:56    阅读次数:249
Starling 2.0 Beta Note 翻译
Starling 2.0 Beta Daniel Sperl on February 29, 2016 Seven months ago, I set myself the goal of bringing Starling to the next level. To completely reth ...
分类:其他好文   时间:2016-07-12 06:49:35    阅读次数:377
Starling 2.0 Final 翻译
Starling 2.0 Final Daniel Sperl on April 19, 2016 It's been several weeks already since I offered you a first look at the brand new version of Starlin ...
分类:其他好文   时间:2016-07-12 06:49:34    阅读次数:389
设计模式--适配器
当定义的接口与提供的实现不兼容的情况,添加一个适配器,可以将类适配不兼容的接口。 //对外暴露接口 public interface ITarget{ public void Request(); } //不兼容接口的类 public class Provider{ public void Requ ...
分类:其他好文   时间:2016-07-12 06:49:00    阅读次数:187
OpenResty(Nginx)+Lua+GraphicsMagick实现缩略图功能
http://www.hopesoft.org/blog/?p=1188 2、用法 原始图片是input.jpg,尺寸:160×120 1)只缩小不放大 1 gm convert input.jpg -resize "500x500>" output_1.jpg 1 gm convert input ...
分类:其他好文   时间:2016-07-12 06:47:15    阅读次数:159
LeetCode-Add Digits
...
分类:其他好文   时间:2016-07-12 06:46:18    阅读次数:139
Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded messag ...
分类:其他好文   时间:2016-07-12 06:46:53    阅读次数:137
采购平台(一)
一、Oracle环境搭建 1.安装Oracle 10g 我们把Orcale安装到虚拟机上,远程连接。 (1)解压文件10201_database_win32.zip,并双击解压目录下的setup.exe,出现安装界面。 (2)输入口令和确认口令,如:password,点击下一步,出现如下进度条,此口... ...
分类:其他好文   时间:2016-07-12 06:44:55    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!