码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
【Binary Search Tree Iterator 】cpp
题目:Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the n...
分类:其他好文   时间:2015-07-14 20:26:17    阅读次数:118
[leedcode 77] Combinations
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:其他好文   时间:2015-07-14 20:25:31    阅读次数:98
【Binary Tree Right Side View 】cpp
题目:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exa...
分类:其他好文   时间:2015-07-14 20:17:02    阅读次数:127
leetcode - Linked List Cycle II
leetcode - Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up:Can you solve...
分类:其他好文   时间:2015-07-14 19:57:11    阅读次数:96
[LeetCode] Excel Sheet Column Number
Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ...
分类:其他好文   时间:2015-07-14 19:54:22    阅读次数:114
[LeetCode] Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他好文   时间:2015-07-14 19:36:57    阅读次数:125
leetCode 54.Spiral Matrix(螺旋矩阵) 解题思路和方法
Spiral Matrix Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [  [ 1, 2, 3 ],  [ 4, 5,...
分类:其他好文   时间:2015-07-14 17:59:10    阅读次数:141
spring中@param和mybatis中@param使用区别
spring中@param /** * 查询指定用户和企业关联有没有配置角色 * @param businessId memberId * @return */ int selectRoleCount(@Param("businessId") Integer businessId,@Param("memberId") Long ...
分类:编程语言   时间:2015-07-14 17:57:34    阅读次数:150
Leetcode 190 Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-07-14 17:21:41    阅读次数:109
三种简单的排序写下贴上
voidQsort(int*a,intL,intR){if(L>=R)return;intp=L,q=R;intval=a[L];while(p!=q){while(pval)q--;if(p=R)return;intmid=(L+R)>>1;mergeSort(a,t,L,mid);mergeSo...
分类:编程语言   时间:2015-07-14 17:20:38    阅读次数:94
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!