码迷,mamicode.com
首页 >  
搜索关键字:right    ( 9126个结果
[leetcode] Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
分类:其他好文   时间:2014-07-07 23:16:20    阅读次数:274
[LeetCode] Populating Next Right Pointers in Each Node
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他好文   时间:2014-07-07 23:09:49    阅读次数:298
2659595
证明:(1)我们可知球心所组成的点列$\left\{ {{x_n}} \right\}_{n = 1}^\infty $是基本列.事实上,当$m \ge n$时,由$x \in {B_m} \subset {B_n}$得\[d\left( {{x_m},{x_n}} \right) \le {\va...
分类:其他好文   时间:2014-07-07 20:40:30    阅读次数:145
[Leetcode][Tree][Binary Tree Preorder Traversal]
二叉树的前序遍历:root点先被访问,然后是left和right子节点。迭代的版本也相对好写。1、递归版本:时间复杂度O(N),空间复杂度O(N) 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int va...
分类:其他好文   时间:2014-07-07 20:35:24    阅读次数:158
[Leetcode][Tree][Binary Tree Inorder Traversal]
二叉树的中序遍历1、递归版本/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) :...
分类:其他好文   时间:2014-07-07 20:00:20    阅读次数:161
[Leetcode][Tree][Same Tree]
非常简单的一道题/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x...
分类:其他好文   时间:2014-07-07 16:25:49    阅读次数:220
[Leetcode][Tree][Binary Tree Postorder Traversal]
二叉树的后续遍历1、递归版本/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) :...
分类:其他好文   时间:2014-06-30 14:17:28    阅读次数:306
Minimum Path Sum
题目 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down...
分类:其他好文   时间:2014-06-30 11:10:34    阅读次数:211
Text Justification
题目 Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy approa...
分类:其他好文   时间:2014-06-29 23:44:02    阅读次数:357
自定义Activity的跳转动画
本来感觉是一个很小的需求, 后来发现老是 出问题, 使用Theme在 4.0上 操作不是很好用. 后来查阅资料, 需要在finish 后面 和 startActivity 后面添加    overridePendingTransition(R.anim.push_right_in,                 R.anim.push_right_out); ...
分类:其他好文   时间:2014-06-27 23:33:51    阅读次数:385
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!