题目1:二叉树的镜像思路:递归 8 8 6 10转换成 10 65 7 9 1111 9 7 5 static void SwapNode(Node node) { if (node == null) { ret...
分类:
其他好文 时间:
2015-09-14 22:22:54
阅读次数:
201
#include#include#define lson l,m,rty?x:y;}void PushUp(int rt){ sum[rt]=max(sum[rt=r) { return sum[rt]; } int ret=-9999999; int m...
分类:
其他好文 时间:
2015-09-14 21:04:24
阅读次数:
175
一:百度地图1.按照API文档导入相应的库2.AppDelegate文件#import "BMapKit.h"BMKMapManager* _mapManager; _mapManager = [[BMKMapManager alloc]init]; BOOL ret = [_mapManager ...
分类:
其他好文 时间:
2015-09-13 19:48:00
阅读次数:
222
O(1) 0 )//没有内存 { ret = (1 + n) * n / 2; } return ret;}long sum2(int n){ long ret = 0; //4个字节 int i = 0;//4个字节 for(i=...
分类:
其他好文 时间:
2015-09-12 17:41:15
阅读次数:
158
Problem:Given an array ofnintegersnumsand atarget, find the number of index tripletsi, j, kwith0 ret = new ArrayList (); ret.add(0); Ar...
分类:
其他好文 时间:
2015-09-12 08:28:58
阅读次数:
612
1、请给Array本地对象增加一个原型方法,它用于删除数组条目中重复的条目(可能有多个),返回值是一个包含被删除的重复条目的新数组。Array.prototype.distinct = function() { var ret = []; for (var i = 0; i < this...
分类:
Web程序 时间:
2015-09-11 12:10:26
阅读次数:
274
1. Lua 调用OC先看例子:hello.lua: -- 点击回调函数 local function notifymenuCallbackTest() local luaoc = require('luaoc') local ok, ret = luaoc.callStaticM...
分类:
其他好文 时间:
2015-09-10 18:58:01
阅读次数:
326
#include<stdio.h>#include<assert.h>#include<stdlib.h>//模拟memcpyvoidmy_momcpy(char*dest,constchar*str,intcount){assert(dest!=NULL);assert(str!=NULL);char*ret=dest;inti=0;for(i=0;i<count;i++){*dest++=*str++;}}intmain(){chara[100]="abcde..
分类:
其他好文 时间:
2015-09-10 17:46:33
阅读次数:
198
在剖析该问题前请看如下代码public static String bytes2HexString(byte[] b) {String ret = "";for (int i = 0; i < b.length; i++) {String hex = Integer.toHexString(b[ i...
分类:
编程语言 时间:
2015-09-10 14:23:42
阅读次数:
233
WINDOWS10PRO专业版ESD镜像官方下载地址:Win10正式版64位简体中文专业版:http://b1.download.windowsupdate.com/c/updt/2015/07/10240.16384.150709-1700.th1_clientpro_ret_x64fre_zh-cn_374a5f1bb3ec97b018e34742e5a4f825209e54fe.esdSHA1:374a5f1bb3ec97b018e34742e5a4f8..