码迷,mamicode.com
首页 >  
搜索关键字:note    ( 7358个结果
LeetCode——Single Number(找出数组中只出现一次的数)
问题: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime co...
分类:其他好文   时间:2014-10-07 18:14:13    阅读次数:189
Minimum Path Sum
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:其他好文   时间:2014-10-06 21:14:50    阅读次数:220
leetcode - Recover Binary Search Tree
Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Could you devis...
分类:其他好文   时间:2014-10-06 18:43:20    阅读次数:201
【ThinkingInC++】67、多态性和虚函数
第十五章 多态性和虚函数 /** * 书本:【ThinkingInC++】 * 功能:纯抽象类 * 时间:2014年10月6日13:10:28 * 作者:cutter_point */ #include using namespace std; enum note {middleC, Csharp, Cflat}; //创建一个抽象类 //基类 class Instrument { p...
分类:编程语言   时间:2014-10-06 15:02:20    阅读次数:281
leetcode - Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNode { ...
分类:其他好文   时间:2014-10-06 14:46:30    阅读次数:202
leetcode - Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNode {...
分类:其他好文   时间:2014-10-06 14:45:50    阅读次数:178
LeetCode Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-10-06 13:11:00    阅读次数:167
Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.For example:Input:["tea","and","ate",...
分类:其他好文   时间:2014-10-06 12:02:00    阅读次数:167
XDCTF-Writeup
Team:ROIS_ThreeLine(ET,Rice,liognaij)Note:这篇writeup由本人和两位队友共同完成,非个人单独作品。其中仅包含队伍提交通过的题目,在两位队友努力下取得第14的成绩,谨以此文为纪念。若有幸被转载还请注明出处。Web20php彩蛋 URL后缀加上 ?=PHPB...
分类:其他好文   时间:2014-10-06 02:32:29    阅读次数:5210
Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant extr...
分类:其他好文   时间:2014-10-06 00:41:19    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!