创建虚拟机的步骤在这里就不再赘述了,请参考上一篇博文。 首先用下述命令将Ubuntu系统进行更新: 1. sudo apt-get update 2. sudo apt-get upgrade 3. sudo apt-get dist-upgrade 然后使用您熟悉的文本编辑器,编辑/etc/apt...
Problem Description:Given a binary tree, flatten it to a linked list in-place.Solution:对二叉树进行前序遍历(pre-order). 1 public void flatten(TreeNode root) { 2...
分类:
其他好文 时间:
2014-07-07 18:47:24
阅读次数:
306
class Solution {public: int longestConsecutive(vector &num) { int len = num.size(); int max_cons = 0; int cur_cons = 0...
分类:
其他好文 时间:
2014-06-30 14:19:28
阅读次数:
159
配置解决方案的属性1.配置解决方案平台,该配置实际上修改的是解决方案目录下的sln(solution)文件。配置项目的属性1.配置项目平台及项目的目标平台:项目-右键-属性-生成(竖着第二个选项卡)可以进行配置,该配置实际上修改的是项目目录下的csproj(c sharpproject)文件。2.改...
分类:
其他好文 时间:
2014-06-27 12:59:13
阅读次数:
318
题目
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 be only one unique solution.
...
分类:
其他好文 时间:
2014-06-27 07:06:50
阅读次数:
184
A simple solution that I use is to merely stop the service and x-copy the files from my bin folder into the service folder.A batch file to stop the se...
简单情景描述1:(在Sharepoint 2013 Solution 中)在相应的.aspx页面引入 一下两个.js文件:然后写入下面的script代码:可以就写这样几行代码,在运行你的页面的时候,如果VoteBaseInfoList这个表存在,则页面不会报错;如果不存在,则页面提示VoteBase...
分类:
其他好文 时间:
2014-06-26 19:57:56
阅读次数:
242
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".class Solution {public: string addBinary(str...
分类:
其他好文 时间:
2014-06-26 15:52:27
阅读次数:
159
Given two integers
n and k, return all possible combinations of k numbers out of 1 ...
n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3...
分类:
其他好文 时间:
2014-06-26 14:06:02
阅读次数:
252
2014-06-24:页面弹出层有很多种方式:iframe和div方式。iframe分页相对简单,作为独立页面操作的空间很大;对div实现的弹出层,要实现不刷新分页,可以参考jQuery插件pagination。主要原理:去除<a>标签中的href属性,用自定义的javascript函数替代直接网址。如:<ahr..
分类:
其他好文 时间:
2014-06-25 10:36:42
阅读次数:
182