效果图这是一个简单的solr检索的例子 输入关键词,显示树 选择一个节点,得到该节点下文档信息 代码:JSP:重点是标红的URL传递 Carrot2: ...
分类:
其他好文 时间:
2014-05-09 11:31:09
阅读次数:
567
使用easyui做布局时,会模仿窗口程序界面,做出一些较复杂的布局.按由外层到内层的顺序:(最外层)panel->tabs->tabs1
->tabs2->layout->北区 ->中区-> panel多个...(最里层) ->西区开始没注意控...
分类:
其他好文 时间:
2014-05-09 11:12:36
阅读次数:
345
http://www.easyui.info/archives/1435.html
分类:
Web程序 时间:
2014-05-09 10:55:21
阅读次数:
541
public class Tree { TreeNode last = null; TreeNode
root = null; public Tree(int value){ root = createNode(value); } ...
分类:
其他好文 时间:
2014-05-07 18:45:42
阅读次数:
275
Given a binary tree, find the maximum path
sum.The path may start and end at any node in the tree.For example:Given the
below binary tree, 1 ...
分类:
其他好文 时间:
2014-05-07 09:36:09
阅读次数:
300
验证二叉树是否是查找树,可以通过查看它的中序遍历是否是升序的。下面是AC代码: 1 /** 2 *
Given a binary tree, determine if it is a valid binary search tree (BST). 3 *
solution : 4...
分类:
其他好文 时间:
2014-05-07 09:01:45
阅读次数:
250
地理位置索引支持是MongoDB的一大亮点,这也是全球最流行的LBS服务foursquare
选择MongoDB的原因之一。我们知道,通常的数据库索引结构是B+
Tree,如何将地理位置转化为可建立B+Tree的形式,下文将为你描述。首先假设我们将需要索引的整个地图分成16×16的方格,如下图(左下...
分类:
数据库 时间:
2014-05-06 13:51:06
阅读次数:
341
html代码:@{ ViewBag.Title = "Index"; Layout =
"~/Views/Shared/_Index_Layout.cshtml";} GridView @{ Layout = null;}...
分类:
其他好文 时间:
2014-05-06 12:59:26
阅读次数:
384
这道题要求空间复杂度为O(1),则只能采用Morris
Traversal进行中序遍历!!这个了解了之后,难点在于如何定位到两个被交换了的节点?我就被困在这里几个小时!!!(允许我为自己的愚蠢表示下悲伤吧!!!)参考了discuss中前辈的算法,才发现很简单!!!我们只需要这样来看问题,BST的中序...
分类:
其他好文 时间:
2014-05-06 12:55:19
阅读次数:
301
1 private void w_day_scheduling_Load(object sender,
EventArgs e) 2 { 3 4 if (ls_deptname == string.Empty) 5 ...
分类:
其他好文 时间:
2014-05-06 10:32:53
阅读次数:
326