调起网易新闻app 使用网易新闻客户端打开 ...
分类:
移动开发 时间:
2018-01-17 18:09:49
阅读次数:
697
根据源码发现:维护了这个可见性变量state ;同一个线程对可重入锁体现用state标记作累加,int nextc = c + acquires; private volatile int state; ...
分类:
其他好文 时间:
2018-01-16 18:27:38
阅读次数:
118
这是亚麻的OA 题 这里的代码没有经过测试 Given a binary tree, find the subtree with maximum sum. Return the root of the subtree. another similar problem in leetcode : ht ...
分类:
其他好文 时间:
2018-01-16 18:24:59
阅读次数:
120
背景 昨天同事遇到了error一起看了一下感觉比较重要在这记录一下 基本情况是页面上选中9K+的数据向后台发送请求,然后系统就崩了。。。 error信息如下 More than the maximum number of request parameters (GET plus POST) for ...
分类:
其他好文 时间:
2018-01-15 14:47:11
阅读次数:
215
Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: Construct the maximum tree by the given array a ...
分类:
其他好文 时间:
2018-01-15 12:32:41
阅读次数:
155
Next challenges: Android Unlock Patterns Maximum XOR of Two Numbers in an Array Maximum Vacation Days 思路:动态规划。 两种分解方法: count[i]表示的是i的二进制表示中1的个数。 1.cou ...
分类:
其他好文 时间:
2018-01-15 00:19:29
阅读次数:
191
题目: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 思路: 这道题看起来并不难,但是有很多需要注意的点,我用了很久的时间才通过这道题。大致的思路 ...
分类:
其他好文 时间:
2018-01-14 21:24:28
阅读次数:
200
非极大值抑制(Non-Maximum suppression,NMS)是物体检测流程中重要的组成部分。它首先基于物体检测分数产生检测框,分数高的检测框M被选中,其他与被选中检测框又明显重叠的检测框被抑制。该过程不断递归的应用于其余检测框。根据算法设计,如果一个物体处于预设的重叠阈值之内,可能会导致检 ...
分类:
其他好文 时间:
2018-01-14 18:38:36
阅读次数:
3620
题目: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical. ...
分类:
其他好文 时间:
2018-01-14 15:17:39
阅读次数:
136
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t ...
分类:
其他好文 时间:
2018-01-13 21:03:19
阅读次数:
167