码迷,mamicode.com
首页 >  
搜索关键字:definition    ( 2735个结果
【leetcode】Binary Tree Inorder Traversal
与前面的先序遍历相似。此题为后序遍历。C++: 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *rig...
分类:其他好文   时间:2015-04-08 23:23:14    阅读次数:159
19:Remove Nth Node From End of List【两指针】【链表】
题目连接:https://leetcode.com/problems/remove-nth-node-from-end-of-list//** * Definition for singly-linked list. * struct ListNode { * int val; * ...
分类:其他好文   时间:2015-04-07 19:34:12    阅读次数:95
Spring 事务管理-Spring Framework transaction
public?interface?PlatformTransactionManager?{ ????TransactionStatus?getTransaction(TransactionDefinition?definition)?throws?TransactionException;???? ????????????void?c...
分类:编程语言   时间:2015-04-07 17:53:57    阅读次数:127
步步为营_Android开发课[11]_AIDL服务学习
Focus on technology, enjoy life!—— QQ:804212028 浏览链接:http://blog.csdn.net/y18334702058/article/details/44624305 主题:AIDL服务 -AIDL(Android Interface Definition Language)即Android接口定义语言。Android系统中的进程之间不能...
分类:移动开发   时间:2015-04-06 17:19:04    阅读次数:136
Leetcode: Linked List Cycle
题目: Given a linked list, determine if it has a cycle in it. 思路分析: 利用快慢指针slow,fast。 slow指针每次走一步,fast指针每次走两步,倘若存在环,则slow和fast必定在某一时刻相遇。C++参考代码:/** * Definition for singly-linked list. * struct ListNo...
分类:其他好文   时间:2015-04-05 11:59:17    阅读次数:99
leetcode:Symmetric Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solutio...
分类:其他好文   时间:2015-04-05 09:04:00    阅读次数:134
The definition of HTTP methods in RFC2616
9Method DefinitionsThe set of common methods for HTTP/1.1 is defined below. Although this set can be expanded, additional methods cannot be assumed to...
分类:Web程序   时间:2015-04-05 01:03:58    阅读次数:239
Leetcode: Insertion Sort List
题目:Sort a linked list using insertion sort. 即使用插入排序对链表进行排序。思路分析: 插入排序思想见《排序(一):直接插入排序 》C++参考代码:/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; *...
分类:其他好文   时间:2015-04-04 22:39:14    阅读次数:154
LeetCode - Binary Tree Level Order Traversal II
二叉树的层序遍历思路一:利用队列,将每一层节点放入队列,各层节点之间加入NULL隔开。 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 ...
分类:其他好文   时间:2015-04-04 19:44:40    阅读次数:110
leetcode:Populating Next Right Pointers in Each Node
/** * Definition for binary tree with next pointer. * struct TreeLinkNode { * int val; * TreeLinkNode *left, *right, *next; * TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {...
分类:其他好文   时间:2015-04-04 09:17:58    阅读次数:124
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!