码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
Partition List
题目 Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the node...
分类:其他好文   时间:2014-06-11 06:28:41    阅读次数:364
JAVA年度安全 第九周 X-FRAME-OPTIONS
Whatis it and why should I care? X-Frame-Options(在草拟的标准中已经移除X-,只保留Frame-Options)是一个新技术用来指定网站页面是否允许嵌入IFrame页面。这样能够解决点击劫持(clickjacking)攻击。 此技术是基于每个页面的HTTP响应头特定参数实现的。支持(X-)Frame-Options头参数的浏览器根据标准会允许或禁...
分类:编程语言   时间:2014-06-11 06:20:49    阅读次数:362
leetcode--Partition List
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:其他好文   时间:2014-06-10 12:06:09    阅读次数:205
【leetcode】Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.水题不解释,一A,...
分类:其他好文   时间:2014-06-10 08:58:37    阅读次数:191
TOMCAT启动提示NB: JAVA_HOME should point to a JDK not a JRE解决
本人使用的Tomcat版本为apache-tomcat-6.0.18(用的是解压包),解压路径为E:\apache-tomcat-6.0.18\apache-tomcat-6.0.18\,我如果部署在myEclipse里启动可以正常启动,当然也可以访问我的工程,但是如果我直接在tomcat源文件b....
分类:编程语言   时间:2014-06-10 08:32:35    阅读次数:264
【leetcode】First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant...
分类:其他好文   时间:2014-06-10 07:42:16    阅读次数:244
leetcode——Two Sum 两数之和(AC)
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2014-06-09 23:14:45    阅读次数:264
单一职责原则
什么是单一职责原则 什么是单一职责原则? 单一职责原则的英文名称是Single Responsibility Principle,简称SRP。SRP的原话解释是:There should never be more than one reason for a class to change.也就是说...
分类:其他好文   时间:2014-06-08 19:36:12    阅读次数:315
[LeetCode] Remove Duplicates from Sorted Array [19]
题目...For example,Given input array A = [1,1,2],Your function should return length = 2, and A is now [1,2]. 解题思路, 移除数组中的重复元素,并返回新数组的长度。 这个题目应该算是简单的题目。使用两个变量就可以。具体的看代码 代码实现......
分类:其他好文   时间:2014-06-08 03:54:22    阅读次数:279
LeetCode——Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2014-06-08 02:12:04    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!