码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
jquery里互为逆过程的方法
jquery里互为逆过程的方法reverse 在jquery里,有不少互为逆过程的方法,如parent()与children(),parents()与find(),first()和last()等,这些联合起来有助于理解。 一 children()和parent() 这是一对遍历dom的jquery方 ...
分类:Web程序   时间:2016-10-30 11:42:41    阅读次数:273
STL源码剖析(算法)
STL中算法是基于迭代器来实现的。 有了容器中迭代器的实现(对operator*、operator++等的重载),STL中大部分算法实现就显得很简单了。 先看一例关于find算法的实现: 1 template <class InputIterator, class T> 2 InputIterato ...
分类:编程语言   时间:2016-10-30 11:17:02    阅读次数:347
3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. ...
分类:其他好文   时间:2016-10-30 07:25:42    阅读次数:208
LeetCode 169 Majority Element
Problem: Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume ...
分类:其他好文   时间:2016-10-30 07:20:56    阅读次数:222
XDOJ_1157_并查集
http://acm.xidian.edu.cn/problem.php?id=1157 ...
分类:其他好文   时间:2016-10-30 07:19:57    阅读次数:186
LeetCode 217 Contains Duplicate
Problem: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice i ...
分类:其他好文   时间:2016-10-30 07:13:52    阅读次数:160
leetcode 113 Path Sum II ----- java
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:Given the below binary tree and sum ...
分类:编程语言   时间:2016-10-29 19:15:49    阅读次数:173
正确使用stl map的erase方法
先声明:下面的文章是针对windows的用法,因为std::map的erase函数的windows的实现版本是返回一个std::map的迭代器,但是STL标准里面的该函数的返回值确是: map.erase有3个重载:void erase ( iterator position );size_type ...
分类:其他好文   时间:2016-10-29 18:38:05    阅读次数:131
leetcode 111 Minimum Depth of Binary Tree ----- java
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:编程语言   时间:2016-10-29 18:35:35    阅读次数:217
188. Best Time to Buy and Sell Stock IV leetcode解题笔记
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 comple ...
分类:其他好文   时间:2016-10-29 14:43:18    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!