solr提供了一个spell check,又叫suggestions,可以用于查询输入的自动完成功能auto-complete。参考文献:https://cwiki.apache.org/confluence/display/solr/Spell+Checkinghttp://www.cnblogs...
分类:
其他好文 时间:
2014-09-25 22:08:37
阅读次数:
304
Problem:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transac...
分类:
其他好文 时间:
2014-09-25 21:10:47
阅读次数:
171
书籍推荐(转自豆瓣)一、软件project师--Clean Code《代码整洁之道》--Implementation Patterns《实现模式》--Code Complete《代码大全》--Refactoring: Improving the Design of Existing Code《重构—...
分类:
其他好文 时间:
2014-09-25 19:15:17
阅读次数:
256
Heap Sort:Heapsort uses the property of Heaps to sort an array. The Heap data structure is an array object that can be viewed as a complete and balanc...
分类:
其他好文 时间:
2014-09-25 19:07:27
阅读次数:
257
为了给用户更好的体验, 前辈们开发了ajax ,那么如何用好这个ajax 给用户最佳的体验呢 , 好吧, 步入正题 , 这节文章就是解决在ajax提交后 如何给用户一个好的反馈,假如用户进行操作 , 等半天一点反应也没有, 其实我们程序已经在执行了 。 那样就会给人不好的一种感觉 , 如果我们给他一...
分类:
其他好文 时间:
2014-09-23 18:13:24
阅读次数:
169
题目:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i...
分类:
其他好文 时间:
2014-09-21 03:10:29
阅读次数:
265
方法1:开机状态下F3-2F#erasestartup-configErasingthenvramfilesystemwillremoveallconfigurationfiles!Continue?[confirm][OK]Eraseofnvram:complete*Mar100:04:19.946:%IP_SNMP-4-NOTRAPIP:SNMPtrapsourceFastEthernet0/1hasnoipaddress*Mar100:04:21.204:%SYS-7-NV_BLOCK_..
分类:
其他好文 时间:
2014-09-19 19:36:46
阅读次数:
227
Sparse CodingSparse coding is a class of unsupervised methods for learning sets of over-complete bases to represent data efficiently. —— 过完备的基,无监督 The...
分类:
其他好文 时间:
2014-09-19 18:57:05
阅读次数:
272
常见的堆实现为二叉堆(Binary Heap),其实际上是一颗二叉树(Binary Tree),并且是一颗完全二叉树(Complete Binary Tree)。当堆被实现为完全二叉树时,其高度为最小高度。如果堆中有 n 个节点,则最小高度为 Θ(lg n)。
分类:
其他好文 时间:
2014-09-17 20:17:52
阅读次数:
352