Given an array of integers, every element
appears twice except for one. Find that single one. Note: Your algorithm should
have a linear runtime comple...
分类:
其他好文 时间:
2014-05-23 07:22:48
阅读次数:
241
向上遍历DOM树:.parent().parents().parentsUntil()向下遍历DOM树:.children().find()DOM树水平遍历:.siblings().next().nextAll().nextUntil().prev().prevAll().preUntil()三个最...
分类:
Web程序 时间:
2014-05-23 07:05:00
阅读次数:
286
今天写程序,遇到了crash,在界面初始化时不会有,想切换到别的tab页就报错了。主要内容如下:Cannot
find an outgoing row head for incoming head UIImageView:0x156caec0.Width{id:
103}, which should...
分类:
移动开发 时间:
2014-05-23 06:48:54
阅读次数:
280
首先 , 对于redhat,openSuse来说 ,C/C++的编译器已经集成了
大多数应该使用的是Ubuntu ,Ubuntu只有gcc(一个编译C语言的编译器), 因此还需要使用命令apt-get g++ 来下载g++的编译器(PS:
g++是一个cpp的编译器) 然后可以使用vim 来测试了(...
分类:
编程语言 时间:
2014-05-23 05:13:49
阅读次数:
285
Color CubeColor =
ObjCube.renderer.material.GetColor("Object名称"); //这样写无法获取物体真实颜色,得到的是(0,0,0,0) ,正确方法是,ObjCube.renderer.material.shader
= Shader.Find(...
分类:
其他好文 时间:
2014-05-23 05:11:16
阅读次数:
308
Given an arraySofnintegers, find three integers
inSsuch that the sum is closest to a given number, target. Return the sum of the
three integers. You m...
分类:
其他好文 时间:
2014-05-23 03:21:10
阅读次数:
287
Given an arraySofnintegers, are there
elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which
gives the sum of zero.Note:Elemen...
分类:
其他好文 时间:
2014-05-22 16:53:52
阅读次数:
173
利用Union Find的方法查找图中是否有环。
在于构建一个图数据结构,和一般图的数据结构不同的是这个图是记录了边的图,并在查找过程中不断把边连接起来,形成一个回路。
原文地址:
http://www.geeksforgeeks.org/union-find/
#pragma once
#include
#include
#include
#include
class Un...
分类:
其他好文 时间:
2014-05-21 14:12:15
阅读次数:
287
WebStorm
8 with IdeaVim plugin
vim, sublime
sublime加上node插件。
nide
Brackets
vim + jshint2.vim
eclipse
Visual Studio 2013 + NTVS(Node.js
Tools for Visual Studio)
notepad++
atom.io
Nodejs c...
分类:
Web程序 时间:
2014-05-21 13:36:47
阅读次数:
493
vim是linux操作系统下的一个文本编辑工具,功能非常强大,但刚学习起来比较复杂。vim的所有功能要讲明白得有几百页,在这里只是记录一下vim的一些基本用法。首先vim打开文件的三种方式:vim+#xxx(#是数字):表示打开xxx文件并将光标定位到指定行。vim-oxx1xx2xx3:表示同时打开..
分类:
系统相关 时间:
2014-05-21 12:36:34
阅读次数:
484