题目
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down...
分类:
其他好文 时间:
2014-06-30 11:10:34
阅读次数:
211
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
给定一个罗马数字,把它转换成一个整数。
把罗马数字字符串转换成字符数组先,如下表,每个数字仅对应一个字符,而且字符不一样。故可从头开始取值进行对应。
The R...
分类:
其他好文 时间:
2014-06-30 09:52:40
阅读次数:
251
1、Oracle
create table 新表名 AS SELECT * FROM 源表名2、Sql Server
SELECT * into 新表名 from 源表名...
分类:
数据库 时间:
2014-06-30 09:51:37
阅读次数:
238
数据项中引入模型/视图架构,可以方便的将数据与表现层分开。
-------------------------------------
为每个视图都提供了一个默认的委托——可以使用自定义的委托来替换显示没一项,并为可编辑项提供一个合适的编辑器。
-------------------------------------
模型:用于存储数据项(data item)。
纯粹的视图部件:Q...
分类:
其他好文 时间:
2014-06-30 09:39:25
阅读次数:
1128
题目
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some...
分类:
其他好文 时间:
2014-06-30 09:36:18
阅读次数:
192
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
给定一个整数,把它转换成罗马数字。
输入可以保证在1到3999之间。
下图是转换规则。
1
2
3
4
...
分类:
其他好文 时间:
2014-06-30 09:28:05
阅读次数:
308
MySQL备份的几种方式
最近一直想写点博客,但是不知道写什么,感觉自己最近的知识没有什么增加,今天想到了一篇可以写的博客。以前试过根据data文件夹备份MySQL,但是从来没有成功过,前几天帮助朋友还原MySQL,终于成功的将备份的data文件夹还原成功了。
MySQL数据库算是常用的数据库中最好使用的数据库了,对于备份的操作也不例外。所以今天分享一下MySQL数据库的备份的几种方式。
方...
分类:
数据库 时间:
2014-06-30 00:17:48
阅读次数:
250
1. start IDLE
“Python 2.5”→“IDLE(Python GUI)”
2. open your source file window
From python shell, select file->open...
3. show debug control
From python shell, select Debug->Debuger
4....
分类:
编程语言 时间:
2014-06-29 22:47:26
阅读次数:
356
【题目】
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1.
se...
分类:
其他好文 时间:
2014-06-29 22:45:26
阅读次数:
358
http://lwn.net/Articles/283161/ Journaling filesystems come with a big promise: they free system administrators from the need to worry about disk corr...
分类:
其他好文 时间:
2014-06-29 18:51:33
阅读次数:
246