码迷,mamicode.com
首页 > 编程语言
LRU Cache leetcode java
题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get ....
分类:编程语言   时间:2014-07-26 09:53:37    阅读次数:402
Valid Parentheses leetcode java
题目:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in t....
分类:编程语言   时间:2014-07-26 09:53:27    阅读次数:254
Sort List leetcode java
题目:Sort a linked list in O(n log n) time using constant space complexity.题解:考虑到要求用O(nlogn)的时间复杂度和constant space complexity来sort list,自然而然想到了merge sor....
分类:编程语言   时间:2014-07-26 09:51:57    阅读次数:307
Reorder List leetcode java
题目:Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.F....
分类:编程语言   时间:2014-07-26 09:51:47    阅读次数:215
LAMP一键安装包(Python版)
去年有出一个python整的LAMP自动安装,不过比较傻,直接调用的yum 去安装了XXX...不过这次一样有用shell..我也想如何不调用shell 来弄一个LAMP自动安装部署啥啥的..不过尼玛智商有限,没搞定,暂且分享一下 先说说目前的缺陷 这个脚本总体来说是调用一个字典,组成这个字典...
分类:编程语言   时间:2014-07-26 09:51:07    阅读次数:434
Merge k Sorted Lists leetcode java
题目:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.题解:Merge k sorted linked list就是merge 2 sorted li....
分类:编程语言   时间:2014-07-26 05:44:37    阅读次数:304
Python环境重新搭建
1.下载python   官网下载最新版python   http://www.wingide.com/downloads 2.下载PyCharm   官网可下载最新版pyCharm-professional   http://www.jetbrains.com/pycharm/download/     实际学习中,...
分类:编程语言   时间:2014-07-26 03:41:07    阅读次数:289
Spring事务管理—aop:pointcut expression解析
先来看看这个spring的配置文件的配置: ?<!-- 事务管理器 --> ?<bean id="transactionManager" ? class="org.springframework.orm.hibernate3.HibernateTransactionManager"> ? <property name="sessionFacto...
分类:编程语言   时间:2014-07-26 03:39:18    阅读次数:223
关于Spring MVC 3.1.x中如何替换数据Converter的问题
#参考的原文 http://www.cnblogs.com/yangzhilong/p/3725849.html #要解决的问题 Web API的开发中,经常需要对HTTP中的request body中的数据流绑定到自建Model中,或者将自建Model反序列化到Response Body中。这时...
分类:编程语言   时间:2014-07-26 03:37:37    阅读次数:257
python 爬虫抓取心得分享
/** author: insun title:python 爬虫抓取心得分享 blog:http://yxmhero1989.blog.163.com/blog/static/112157956201311821444664/ **/??? 0x1.urllib.quote(‘要编码的字符串‘) 如果你要在url请求里面放入中文...
分类:编程语言   时间:2014-07-26 03:36:37    阅读次数:334
java设计模式之单例模式(Singleton)
Java设计模式之单例模式 单例模式是什么? 保证一个类仅有一个实例,并提供一个访问它的全局访问点。 单例模式如何来设计呢? 保证一个类只能有一个实例,那么我们不能无限制的new 来创建,因为我们知道,new一次就...
分类:编程语言   时间:2014-07-26 03:36:27    阅读次数:219
Javascript日历
/** *?Created?by?YCXJ-wanglihui?on?2014/7/25. ?*?@module?utils */ ‘use?strict‘; /** ?*?@class?日历类?Calendar ?*?@constructor ?*?@param?{Number}?year ?*?@param?{Number}?mon...
分类:编程语言   时间:2014-07-26 03:36:07    阅读次数:349
java web start程序部署感慨
由于刚学习java,很多地方不懂,今天看到java web start方式部署程序然后就把自己的java程序打包成jar可执行的。新建了.jnlp文件,里面xml也写好了。然后把jar文件和jnlp文件放在了tomcat的webapps里面。在浏览器...
分类:编程语言   时间:2014-07-26 03:35:07    阅读次数:297
python tempfile
主要有以下几个函数:tempfile.TemporaryFile如何你的应用程序需要一个临时文件来存储数据,但不需要同其他程序共享,那么用TemporaryFile函数创建临时文件是最好的选择。其他的应用程序是无法找到或打开这个文件的,因为它并没有引用文件系统表。用这个函数创建的临时文件,关..
分类:编程语言   时间:2014-07-26 03:24:57    阅读次数:297
VC++: LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
http://bbs.csdn.net/topics/390121452在上述链接帖子找到答案并且已在本机解决。直接引用25楼的话:终极解决方案:VS2010在经历一些更新后,建立Win32ConsoleProject时会出“errorLNK1123”错误,解决方案为将项目|项目属性|配置属性|清单工具|输入和输出|嵌入清单“是”改为..
分类:编程语言   时间:2014-07-26 03:19:27    阅读次数:179
highcharts java饼图
自学highcharts饼图,springMVC框架,后台java,mysql数据库,官网下载Highcharts,留待以后备用jsp页面代码:<%@pagelanguage="java"import="java.util.*"pageEncoding="utf-8"%> <% Stringpath=request.getContextPath(); StringbasePath=request.getScheme()+"://"..
分类:编程语言   时间:2014-07-26 03:18:47    阅读次数:233
Quartz 2.x与Spring 动态整合
一、Quartz简介Quartz是一个由JamesHouse创立的开源项目,是一个功能强大的作业调度工具,可以计划的执行任务,定时、循环或在某一个时间来执行我们需要做的事,这可以给我们工作上带来很大的帮助。例如,你的程序中需要每个月的一号导出报表、定时发送邮件或程序需要每隔一段..
分类:编程语言   时间:2014-07-26 03:15:07    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!