码迷,mamicode.com
首页 >  
搜索关键字:all in one    ( 50303个结果
简单使用NSURLConnection、NSURLRequest和NSURL
下面是代码,注释也写得比较清楚: // // HttpDemo.h // MyAddressBook // // Created by hherima on 14-6-23. // Copyright (c) 2014年 chinasofti. All rights reserved. // #import #import @interface HttpDemo : NSObjec...
分类:其他好文   时间:2014-06-25 00:07:58    阅读次数:190
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
加入收藏兼容主流浏览器代码
//加入收藏 function AddFavorite(){ if (document.all) { addToBookMark(window.location.href, document.title); } else if (window.sidebar) { addToBookMark(document.title, window.location.href); } } func...
分类:其他好文   时间:2014-06-24 23:21:37    阅读次数:200
12 在Foreach循环中如何获得当前迭代的索引
static void ForEachIndex() { int curIndex = 0; Dictionary diction = new Dictionary(); int counter = 0; diction.Add("One", "One"); ...
分类:其他好文   时间:2014-06-24 23:00:13    阅读次数:202
PS 滤镜算法原理——碎片效果
%%% Fragment %%% 对原图做四个方向的平移,然后对平移的结果取平均 %%% 碎片效果 clc; clear all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); Image=imread('4.jpg'); Image=double(Image)/255;...
分类:其他好文   时间:2014-06-24 21:06:24    阅读次数:226
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: Best Time to Buy and Sell Stock II [122]
【题目】 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 one and sell one share of the stock multiple times). H...
分类:其他好文   时间:2014-06-24 19:40:53    阅读次数:240
Longest Palindromic Substring
题目 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 方法 ...
分类:其他好文   时间:2014-06-24 19:36:55    阅读次数:212
REPLICAT RORA_1保持 ABENDED状态,无法启动问题处理
REPLICAT  RORA_1保持 ABENDED状态,无法启动问题 GGSCI (gc1) 12> info all Program     Status      Group       Lag           Time Since Chkpt MANAGER     RUNNING                                            E...
分类:其他好文   时间:2014-06-24 17:37:19    阅读次数:305
【Matlab编程】马氏链随机模拟
本文是利用蒙特卡罗算法对马氏链过程的模拟。假设有10个状态,从每个状态到与之相邻状态的概率是相同的,仿真次数为1000,及进行了1000次状态转移。我们以动画的形式再现了状态转移的过程,并记录了到达每个状态的次数,具体实现如下: close all;clc;clear; figure; s=1; n=1000; r=1; % 圆圈的半径 title('等概率情况的计算机模拟') set(gc...
分类:其他好文   时间:2014-06-24 17:35:28    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!