码迷,mamicode.com
首页 >  
搜索关键字:element    ( 12012个结果
Leetcode--Best Time to Buy and Sell Stock III
Problem Description: 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 at most two transa...
分类:其他好文   时间:2014-06-05 09:33:52    阅读次数:342
LeetCode: Set Matrix Zeroes [073]
【题目】 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 【题意】 给定一个mXn的矩阵,如果其中的元素为0,则对应的行和列都用0填充。 不能申请额外的空间。 【思路】 第一行和第一列空出来标记需要置0的列和行 第一遍扫描: 扫描第一行,判断第一行是否需要清零 ...
分类:其他好文   时间:2014-06-05 08:07:11    阅读次数:229
xml形式数据解析
?? import java.io.IOException; import java.io.StringReader; import java.util.List; import org.jdom.Document; import org.jdom.Element; import org.jdom.JDOMException; import org.jdom.Namespace;...
分类:其他好文   时间:2014-06-04 21:45:59    阅读次数:228
Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:其他好文   时间:2014-06-04 19:19:16    阅读次数:205
web.xml里<init-param>报错
Description Resource Path Location Type cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":enabled, "http://java.sun....
分类:Web程序   时间:2014-06-03 05:31:38    阅读次数:514
JQuery+javascript遍历tr td
function InitTable(tableID, trName) { $(tableID + " tr").each(function (index, element) { if (index == 0 || index == $(tableID + " tr").leng...
分类:编程语言   时间:2014-05-31 17:02:47    阅读次数:251
Emmet/Zen Coding 快速入门说明
快速参考 以下是支持的特性: ele creates an HTML element tag 展开一个HTML元素标签 # creates an id attribute 作用于元素标签,展开一个id属性 . creates...
分类:其他好文   时间:2014-05-31 15:32:34    阅读次数:321
【LeetCode】Jump Game II
Jump Game IIGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents...
分类:其他好文   时间:2014-05-31 03:14:14    阅读次数:243
Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-05-30 16:16:29    阅读次数:190
Single Number II
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2014-05-30 15:15:53    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!