Reby


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

平衡二叉树

发表于 2016-07-10   |   分类于 leetcode   |  
Balanced Binary TreeGiven a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of ever ...
阅读全文 »

leetcode简单题6

发表于 2016-07-08   |   分类于 Algorithm   |  
今天的华师 Binary Tree Level Order Traversal IIGiven a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, le ...
阅读全文 »

打家劫舍

发表于 2016-07-04   |   分类于 Algorithm   |  
House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that ad ...
阅读全文 »

leetcode简单题4

发表于 2016-07-03   |   分类于 leetcode   |  
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 123456789101112131415161718192021222 ...
阅读全文 »

leetcode简单题3

发表于 2016-07-02   |   分类于 leetcode   |  
Lowest Common Ancestor of a Binary Search TreeGiven a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia: &# ...
阅读全文 »

leetcode简单题2

发表于 2016-06-30   |   分类于 leetcode   |  
Majority ElementGiven an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty ...
阅读全文 »

leetcode简单题1

发表于 2016-06-29   |   分类于 leetcode   |  
Nim GameYou are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone wil ...
阅读全文 »

BFS与DFS

发表于 2016-06-21   |   分类于 Algorithm   |  
BFS为了实现各个状态按照其被查找到的顺序依次转移扩展ÿ ...
阅读全文 »

单词替换

发表于 2016-06-21   |   分类于 Algorithm   |  
描述输入一个字符串,以回车结束(字符串长度<=100)。该 ...
阅读全文 »

map

发表于 2016-06-21   |   分类于 Algorithm   |  
九度1450题 产生冠军描述有一群人,打乒乓球比赛,两两捉&#x ...
阅读全文 »
1…345…7
Rui

Rui

Never stand still

62 日志
10 分类
48 标签
© 2016 Rui
由 Hexo 强力驱动
主题 - NexT.Mist