码迷,mamicode.com
首页 >  
搜索关键字:element    ( 12012个结果
【LeetCode】Set Matrix Zeroes (2 solutions)
Set Matrix ZeroesGiven amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you us...
分类:其他好文   时间:2014-12-09 15:37:20    阅读次数:208
【LeetCode】Jump Game 解题报告
【题目】 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. D...
分类:其他好文   时间:2014-12-09 10:37:18    阅读次数:114
Vistor访问者模式(C++访问者模式)
Visitor模式在不破坏类的前提下,为类提供增加新的新操作。 Visitor模式经常用于将更新的设计封装在一个类中,并且由待更改的类提供一个接受接口,其关键技术在于双分派技术,Element类提供接口,通过Accept实现具体使用哪一个具体的Visit操作;     当然如果有很多的修改,便可以提供更多的Element的Visitor,但是会破坏系统的封装,并且难于扩展。 C++设计模式原...
分类:编程语言   时间:2014-12-09 00:38:05    阅读次数:232
【LeetCode】Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once....
分类:其他好文   时间:2014-12-09 00:36:43    阅读次数:202
RFC 3986 URI的结构
mpeg dash 的element BaseURL语法规则遵循RFC 3986,需要做简单了解:I.1URI各个部分的名称foo://example.com:8042/over/there?name=ferret#nose\_/\______________/\_________/\_______...
分类:其他好文   时间:2014-12-09 00:23:45    阅读次数:325
LeetCode Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get...
分类:其他好文   时间:2014-12-08 23:10:51    阅读次数:400
LeetCode Find Peak Element
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may contain multiple peaks, in ...
分类:其他好文   时间:2014-12-08 21:25:17    阅读次数:177
LeetCode Find Peak Element
A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index....
分类:其他好文   时间:2014-12-08 21:07:19    阅读次数:112
Find Peak Element
A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index....
分类:其他好文   时间:2014-12-08 19:14:44    阅读次数:127
【原创】leetCodeOj --- Find Peak Element 解题报告
题目地址:https://oj.leetcode.com/problems/find-peak-element/题目内容:A peak element is an element that is greater than its neighbors.Given an input array wher...
分类:其他好文   时间:2014-12-08 17:37:32    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!