码迷,mamicode.com
首页 >  
搜索关键字:note    ( 7358个结果
Leetcode Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-06-25 23:01:44    阅读次数:227
Programming In Scala Reading Note 1
Chapter1 and Chapter2方法定义:def methodName(param1: ParamType, param2: ParamType2, [maybe more]): ReturnType = { // method body}函数式编程中一个约定俗成的说法就是,方法会返回一....
分类:其他好文   时间:2014-06-25 19:15:35    阅读次数:205
chckbox 实现单选效果(html)
note:在html 标签类中的checkbox实现单选效果。在最近的开发项目中,客户要求使用小方格子实现“单选”功能,显然圆点的radio被out了,只能选择chckbox的方块样式,也在网上搜过,可能有点儿脑残,没有找到。废话不多说直接上代码: checkbox实现单选效...
分类:Web程序   时间:2014-06-25 19:14:51    阅读次数:258
Programming In Scala Reading Note 2
Learn to programming in funtional way如果一个方法中存在var的话,那么这个方法很可能就是指令式编程。如果一个方法中只存在val的话,那么这个方法很可能是函数式编程。我们需要尝试着把方法中的val删除掉。副作用,一个方法满足函数式编程的基本要求,但是返回值是一个U...
分类:其他好文   时间:2014-06-25 18:31:47    阅读次数:166
LeetCode——Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using e...
分类:其他好文   时间:2014-06-24 23:30:08    阅读次数:278
LeetCode: Best Time to Buy and Sell Stock III [123]
【题目】 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 transactions. Note: You may not engage in multiple transactions at the same time (i...
分类:其他好文   时间:2014-06-24 23:28:43    阅读次数:223
opencv-图像金字塔
图像金字塔 目标 本文档尝试解答如下问题: 如何使用OpenCV函数 pyrUp 和 pyrDown 对图像进行向上和向下采样。 原理 Note   以下内容来自于Bradski和Kaehler的大作: Learning OpenCV 。 当我们需要将图像转换到另一个尺寸的时候, 有两种可能: 放大 图像 或者缩小 图像。...
分类:其他好文   时间:2014-06-24 22:54:22    阅读次数:346
LeetCode:Subsets II
Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplica...
分类:其他好文   时间:2014-06-24 20:58:32    阅读次数:230
LeetCode——Single Number II
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-06-24 15:52:58    阅读次数:222
LeetCode: Valid Palindrome [125]
【题目】 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome. Note: Have you consider that the string m...
分类:其他好文   时间:2014-06-24 15:35:07    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!