码迷,mamicode.com
首页 >  
搜索关键字:from    ( 57817个结果
【Maximum Depth of Binary Tree 】cpp
题目:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest...
分类:其他好文   时间:2015-05-17 00:40:24    阅读次数:126
[LeetCode] Maximum Depth of Binary Tree
Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:其他好文   时间:2015-05-16 20:38:48    阅读次数:152
[LeetCode] Course Schedule II
Course Schedule II There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1...
分类:其他好文   时间:2015-05-16 20:37:33    阅读次数:124
[LeetCode] Binary Tree Level Order Traversal
Binary Tree Level Order Traversal   Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree {3,9,...
分类:其他好文   时间:2015-05-16 20:35:48    阅读次数:155
mysql explain
mysql> explain select * from siteinfo;+----+-------------+----------+------+---------------+------+---------+------+--------+-------+| id | select_typ...
分类:数据库   时间:2015-05-16 20:33:36    阅读次数:193
Leetcode#82Remove Duplicates from Sorted List II
RemoveDuplicatesfromSortedListIITotalAccepted:40273TotalSubmissions:160820MySubmissionsQuestionSolutionGivenasortedlinkedlist,deleteallnodesthathaveduplicatenumbers,leavingonlydistinctnumbersfromtheoriginallist.Forexample,Given1->2->3->3->4->..
分类:其他好文   时间:2015-05-16 18:41:41    阅读次数:158
Leetcode#80Remove Duplicates from Sorted Array II
RemoveDuplicatesfromSortedArrayIITotalAccepted:39950TotalSubmissions:130101MySubmissionsQuestionSolutionFollowupfor"RemoveDuplicates":Whatifduplicatesareallowedatmosttwice?Forexample,Givensortedarraynums=[1,1,1,2,2,3],Yourfunctionshouldreturnlength=5,withth..
分类:其他好文   时间:2015-05-16 18:35:41    阅读次数:120
[LeetCode] Reverse Linked List II
Reverse a linked list from position m to n. Do it in-place and in one-pass.For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5->NULL.Note: Given m, n satisfy the following co...
分类:其他好文   时间:2015-05-16 18:26:43    阅读次数:99
【Tree】已知前序和中序遍历还原二叉树
1 /************************** 2 https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ 3 @date 2015.5.16 4 @descrip....
分类:其他好文   时间:2015-05-16 18:16:24    阅读次数:167
SQL Server存储过程作业(二)
阶段1:练习——统计某类型客房的入住客人人数需求说明使用存储过程统计在指定类型的客房入住客人的总人数提示:存储过程的输入参数是指定的客房类型名称USE HotelGO--阶段1:查询入住在指定客房类型的客房的顾客数IF EXISTS(SELECT * FROM sysobjects WHERE na...
分类:数据库   时间:2015-05-16 18:14:02    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!