Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Solution1: 这道题做的太麻烦了,corner case很多,碰到负数不知道怎么给reverse。强行转成st ...
分类:
其他好文 时间:
2016-09-11 06:47:57
阅读次数:
130
简介 apprtc 是什么,webrtc.org官方指定体验app 原料: ubuntu14.04,其他linux版本不限,官方并没特殊说明 chrome M51+ stunnle https://www.stunnel.org/index.html rfc5766-turn-server http ...
分类:
移动开发 时间:
2016-09-08 06:17:02
阅读次数:
1749
0. 引言 Across the Great Wall, we can reach every corner in the world. 洒家最近玩了几下 Google App Engine。由于众所周知的原因,天朝恶劣的网络环境十分影响程序猿的生产活动。另外,GAE对新手来说需要摸索和练习才能掌握 ...
分类:
其他好文 时间:
2016-09-03 06:20:29
阅读次数:
215
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2016-09-02 20:32:29
阅读次数:
133
Problem Description Nim is a two-player mathematic game of strategy in which players take turns removing objects from distinct heaps. On each turn, a ...
分类:
其他好文 时间:
2016-08-23 13:15:49
阅读次数:
211
def create(self, req, body, tenant_id): # TODO(hub-cap): turn this into middleware LOG.info(_LI("Creating a database instance for tenant '%s'"), tenan ...
分类:
其他好文 时间:
2016-08-22 17:59:57
阅读次数:
174
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2 ...
分类:
其他好文 时间:
2016-08-19 14:43:30
阅读次数:
147
在做图像匹配时,常需要对两幅图像中的特征点进行匹配。为了保证匹配的准确性,所选择的特征必须有其独特性,角点可以作为一种不错的特征。 那么为什么角点有其独特性呢?角点往往是两条边缘的交点,它是两条边缘方向变换的一种表示,因此其两个方向的梯度变换通常都比较大并且容易检测到。 这里我们理解一下Harris ...
分类:
其他好文 时间:
2016-08-17 14:01:01
阅读次数:
287
Problem Description Nim is a mathematical game of strategy in which two players take turns removing objects from distinct heaps. On each turn, a playe ...
分类:
其他好文 时间:
2016-08-17 00:04:35
阅读次数:
199
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every ...
分类:
其他好文 时间:
2016-08-16 23:34:43
阅读次数:
196