1. android:gravity 对内的相对位置-----用来设置该view的内容在该View内的相对位置 (靠左,靠右,靠上, 靠下, 居中...,不是具体数值). (官方的解释是: gravity---Specifies how to place the content of an obje...
分类:
移动开发 时间:
2015-03-09 06:59:01
阅读次数:
266
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
题意:矩阵旋转。
思路:每次旋转的时候都一次性旋转4个数。
class Solution {
publ...
分类:
其他好文 时间:
2015-03-08 15:44:42
阅读次数:
110
Remove Duplicates from Sorted Array问题:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new le...
分类:
其他好文 时间:
2015-03-08 10:23:57
阅读次数:
126
Rotate Image问题:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路: ...
分类:
其他好文 时间:
2015-03-07 20:00:00
阅读次数:
113
Remove Element问题:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be change...
分类:
其他好文 时间:
2015-03-07 11:24:53
阅读次数:
149
angular All About Angular 2.0 Posted by?Rob Eisenberg?on??November 6th, 2014. Have questions about the strategy for Angular 2.0? This is the place. In the following article I‘ll explain the maj...
分类:
其他好文 时间:
2015-03-06 17:29:59
阅读次数:
274
10.6 - Apple and our customers place a high value on simple, refined, creative, well thought through interfaces. They take more work but are worth it....
分类:
移动开发 时间:
2015-03-06 09:36:22
阅读次数:
179
https://oj.leetcode.com/problems/flatten-binary-tree-to-linked-list/Given a binary tree, flatten it to a linked list in-place.For example,Given ...
分类:
其他好文 时间:
2015-03-05 16:22:32
阅读次数:
192
https://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2-...
分类:
其他好文 时间:
2015-03-04 20:59:28
阅读次数:
131
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路一:b[i][j] = a[n-1...
分类:
其他好文 时间:
2015-03-03 14:55:40
阅读次数:
140