最近参加了Coursera的课程,Stanford大学的《算法:设计与分析》。这是一门非常值得学习的课程。在老师布置的作业中,有这样一道题目:
The goal of this problem is to implement a variant of the 2-SUM algorithm .
The file contains 1 million integers, both pos...
分类:
编程语言 时间:
2014-12-04 23:15:49
阅读次数:
325
The current date and time is: Folder Name Description App_Browsers Contains browser definition fi...
分类:
Web程序 时间:
2014-12-04 15:33:11
阅读次数:
116
1. iOS APP Project or ?Mac APP Project编译错误提示: “The run destination My Mac 64-bit is not valid for Running the scheme ‘***‘. The scheme ‘***‘ contains no buildables that can be built for th...
分类:
移动开发 时间:
2014-12-04 14:08:35
阅读次数:
183
数据库数据执行任意文本查询:1.使用FREETEXT谓词 FREETEXT接受两个参数。第一个参数表示要搜索的列,可以提供列名,或者用*字符搜索表中的所有列。第二个参数表示要搜索的短语。例: select Title from Titles where FREETEXT(Title,'secret ...
分类:
其他好文 时间:
2014-12-04 13:48:34
阅读次数:
214
呵呵,又来到了今天的总结。这次主要复习了一下字符串的一些处理。今天就来总结一下。理论:?String 字符串,字符串可以看成字符数组,不可变特性(通过for循环,修改string中的元素,失败!)。属性Length 输出用户名的字符个数方法str.Contains() 判断字符串是否包含String...
又是一个八皇后问题:
Given an integer n, return all distinct solutions to the n-queens puzzle.
Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.' both
...
分类:
其他好文 时间:
2014-12-03 21:17:08
阅读次数:
175
今天CSDN博客发生异常,折腾了大半天终于发出了这篇博文。
【题目】
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only no...
分类:
其他好文 时间:
2014-12-03 17:14:52
阅读次数:
219
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq...
分类:
其他好文 时间:
2014-12-03 13:57:44
阅读次数:
157
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ...
分类:
其他好文 时间:
2014-12-03 13:47:22
阅读次数:
151
Clone an undirected graph. Each node in the graph contains a label and
a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separator for each...
分类:
其他好文 时间:
2014-12-03 12:34:14
阅读次数:
113