码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
LeetCode——Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [3,2,1]. Note: Recursive solut...
分类:其他好文   时间:2014-06-22 20:58:01    阅读次数:157
setjmp与longjmp
在C中有时我们会使用goto语句用于执行跳转,但是不能跨越函数 #include void func2() { int num = 0; dst2: if (num > 0) { printf("func1()\n"); func3(); } if (num == 1) return; num++; goto dst2; } void func3() { } ...
分类:其他好文   时间:2014-06-22 20:46:50    阅读次数:144
【Leetcode】Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the...
分类:其他好文   时间:2014-06-22 20:02:46    阅读次数:182
Leetcode-subsets
题目: Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. ...
分类:其他好文   时间:2014-06-22 17:51:54    阅读次数:196
leetcode -day31 Subsets I II
1、 ?? Subsets Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subset...
分类:其他好文   时间:2014-06-22 17:08:53    阅读次数:179
LeetCode——Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recursive soluti...
分类:其他好文   时间:2014-06-22 16:37:51    阅读次数:168
Java 线程第三版 第九章 Thread调度 读书笔记
一、Thread调度的概述 import java.util.*; import java.text.*; public class Task implements Runnable { long n; String id; private long fib(long n) { if (n == 0) return 0L; ...
分类:编程语言   时间:2014-06-22 14:15:04    阅读次数:298
leetcode 题解: Length of Last Word
leetcode:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last...
分类:其他好文   时间:2014-06-22 13:41:07    阅读次数:154
百度搜索词&淘宝搜索词 接口实现
百度和淘宝并没有正式的提供一个公开API给我们用,但是经过分析他们的源代码,还是找到了解决方法。/*baidu&taobao callback*/function dachie(d) { if (d.s) return d.s else { return d.result....
分类:其他好文   时间:2014-06-22 13:20:29    阅读次数:213
g++基本用法
用法:g++[选项]文件... g++编译流程:      [cpp] view plaincopyprint? main.cxx  #include      using namespace std;    int main(void)  {          cout"Hello World!"        return 0;  }   m...
分类:其他好文   时间:2014-06-22 00:48:48    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!