马上又要秋招了,赶紧复习下基础知识。这里复习下二叉树和图的深搜与广搜。从图的遍历说起,图的遍历方法有两种:深度优先遍历(Depth First Search), 广度优先遍历(Breadth First Search)。图搜索的经典应用走迷宫、N皇后、二叉树遍历等。遍历:定义按某种顺序访问“图”中所有的节点。...
分类:
其他好文 时间:
2014-08-24 12:58:32
阅读次数:
8475
//lamda //first lamda [] {}; // second lamda []() //or no need () when paramater is null { std::cout bool { return (bool)i; }(5); //5, lamda captu...
分类:
编程语言 时间:
2014-08-23 21:39:11
阅读次数:
195
关于Entity Framework 的code first 模式,相信大家都不陌生了.本文就来看看实体继承在 codefirst里的用法.第一步 添加 code first 的环境这里为了方便,选用的是 VS2013 + SQL SERVER 2014 LocalDb, 查看数据用 SQL Ser...
分类:
其他好文 时间:
2014-08-23 21:35:42
阅读次数:
336
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2014-08-23 12:44:30
阅读次数:
211
在上一篇文章中,我们使用Entity Framework 和SQL Server LocalDB创建了一个MVC应用程序,并使用它来存储和显示数据。在这篇文章中,你将对由 MVC框架自动创建的CRUD(create, read, update, delete)代码进行修改。
注意:通常我们在控制器和数据访问层之间创建一个抽象层来实现仓储模式,为了将注意力聚焦在如何使用实体框架上,这里暂没有使用仓储模式。...
分类:
Web程序 时间:
2014-08-23 12:43:25
阅读次数:
402
Description Gibbs: Next! First Pirate: My wife ran off with my dog and I'm drunk for a month. Gibbs: Perfect. Next! Second Pirate: Me hav...
分类:
其他好文 时间:
2014-08-23 11:12:50
阅读次数:
224
setTimeout, 单位是毫秒setTimeout ( time code, timer delay );eg:setTimeout("alert('wake up!')", 100000);The document object表示网页代码本身修改用户窗口(不是整个浏览器)的大小,可以用bod...
分类:
编程语言 时间:
2014-08-23 08:46:10
阅读次数:
200
1 /***** Selector Hacks ******/ 2 3 /* IE6 and below */ 4 * html #uno { color: red } 5 6 /* IE7 */ 7 *:first-child+html #dos { color: red } 8 ...
分类:
Web程序 时间:
2014-08-22 21:03:49
阅读次数:
311
大二下学期,刚教完C++便开始对自己所学的东西产生质疑。
我们了一年多,学了C,学了C++,学了数据结构可是为什么我所能做的还只是局限于刷OJ呢?(当然OJ刷的也不多)还不如读数媒专科的同学至少能用FLASH做个游戏出来。然后偶然看到舍友的这本书,之前也一直听说Java对工程项目的可用性,所以也就开始了我的Java之路。
之前看过谭浩强的C,浅显易懂,但是总觉得是应试教育的一种...
分类:
编程语言 时间:
2014-08-22 14:34:09
阅读次数:
230
Db first系列-11) 创建Db 文件,并指定connectionstring name: public class Db : DbContext { public Db() : base("prodinner") { } ...
分类:
数据库 时间:
2014-08-21 16:46:34
阅读次数:
226