码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果)
tkD--来自TCL/TK之D语言跨平台GUI库
D越来越有玩头了~~感觉一下代码的流畅: 1 module main; 2 3 /** 4 * Imports. 5 */ 6 import std.algorithm; 7 import std.array; 8 import std.datetime; 9 import ...
分类:其他好文   时间:2014-07-16 21:12:50    阅读次数:288
leetcode题解:Search for a Range (已排序数组范围查找)
题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ...
分类:其他好文   时间:2014-07-16 19:48:18    阅读次数:263
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-07-14 10:01:38    阅读次数:168
LeetCode——Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? 原题链接:https:/...
分类:其他好文   时间:2014-07-12 20:43:11    阅读次数:213
Leetcode:Swap Nodes in Pairs 单链表相邻两节点逆置
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-07-12 20:39:17    阅读次数:225
全文索引搜索whoosh(2)
承接前面对whoosh的文章,继续: 写索引文件 下面开始写入索引内容,过程如下: writer = ix.writer() writer.add_document(title=u"my document", content=u"this is my document", path=u"/a", tags=u"firlst short", icon=u"/icons/star.p...
分类:其他好文   时间:2014-07-12 20:22:08    阅读次数:342
序列相关的趣题 之四
(8) 给定一个英文单词,...
分类:其他好文   时间:2014-07-12 19:58:58    阅读次数:199
OpenCV-PS 图层混合算法(一)
定义  #ifndef PS_ALGORITHM_H_INCLUDED #define PS_ALGORITHM_H_INCLUDED #include #include #include #include "Public_Function.h" #include "cv.h" #include "highgui.h" #include "cxmat.hpp" #incl...
分类:其他好文   时间:2014-07-12 18:01:00    阅读次数:179
LeetCode——Best Time to Buy and Sell Stock II
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 as many transactions as you like (ie, buy on...
分类:其他好文   时间:2014-07-12 16:31:50    阅读次数:192
PS 滤镜算法原理——照亮边缘
clc; clear all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); Image=imread('4.jpg'); Image=double(Image); R=Image(:,:,1); G=Image(:,:,2); B=Image(:,:,3); R_G...
分类:其他好文   时间:2014-07-10 23:31:20    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!