码迷,mamicode.com
首页 >  
搜索关键字:write back    ( 29084个结果
Generate Parentheses leetcode java
题目:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is....
分类:编程语言   时间:2014-08-02 12:19:33    阅读次数:255
Android actionBar
今天做公司项目的时候用到了一个新的东东, getActionBar().setDisplayHomeAsUpEnabled(true); 这个神奇的东东是使得actionBar上面会出现一个向左的小箭头。 按下它就相当于back,对应的事件是ActionBar.DISPLAY_HOME_AS_UP. 以前做项目为省劲总是在2.0上混,这个东西是在4.0以后默认为false。 ...
分类:移动开发   时间:2014-08-02 05:14:22    阅读次数:191
LeetCode "Permutations"
Lexicographicallyalgorithms:1. Iterate array from back to front, and find the first decreasing point: 1,2,4,3 -- 42. Iterate array from back to front,...
分类:其他好文   时间:2014-08-02 05:11:02    阅读次数:199
vector内存分配
vector,map这些容器还是在堆上分配的内存,在析构时是释放空间vector在提高性能可以先reserve在push_back()reserve:决定capacity,但没有真正的分配内存,我感觉只是告诉操作系统预留一段空间,但没有真正的分配resize:真正的分配了,可以通过下标访问
分类:其他好文   时间:2014-08-01 23:00:12    阅读次数:263
JavaFX将Node导出为图片
在JavaFX中提供了一个很实用的功能。我们可以将任意节点截图导出。  代码如下: WritableImage image = mapCanvas.snapshot(new SnapshotParameters(), null); try { ImageIO.write(SwingFXUtils.fromFXImage(image, null), "png", fi...
分类:编程语言   时间:2014-08-01 19:42:22    阅读次数:1318
Same Tree
问题描述: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 解题思路:...
分类:其他好文   时间:2014-08-01 13:48:11    阅读次数:183
HDU 1022 Train Problem I (数据结构 —— 栈)
Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is t...
分类:其他好文   时间:2014-08-01 13:40:31    阅读次数:267
文件I/O学习笔记
Linux内核的VFS子系统:文件描述符对于内核而言,所有打开的文件都通过文件描述符引用。文件描述符是一个非负整数。当打开一个现有文件或创建一个新文件时,内核向进程返回一个文件描述符。当读或写一个文件时,使用open或creat返回的文件描述符标识该文件,将其作为参数传递给read或write。 按...
分类:其他好文   时间:2014-08-01 12:48:01    阅读次数:430
HDU-3502-Huson's Adventure Island(BFS+状压DP)
Problem Description A few days ago, Tom was tired of all the PC-games, so he went back to some old FC-games. "Hudson's Adventure Island" was his favorite which he had played thousands of times. But t...
分类:其他好文   时间:2014-08-01 10:53:21    阅读次数:300
Sudoku Solver leetcode java
题目:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will ....
分类:编程语言   时间:2014-08-01 10:38:21    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!