Redian新闻
>
郁闷!有没有出生公证不用照片过了的
avatar
郁闷!有没有出生公证不用照片过了的# Immigration - 落地生根
t*m
1
http://www.lintcode.com/en/problem/find-peak-element-ii/
There is an integer matrix which has the following features:
The numbers in adjacent positions are different.
The matrix has n rows and m columns.
For all i < m, A[0][i] < A[1][i] && A[n - 2][i] > A[n - 1][i].
For all j < n, A[j][0] < A[j][1] && A[j][m - 2] > A[j][m - 1].
We define a position P is a peek if A[j][i] > A[j+1][i] && A[j][i] > A[j-1][
i] && A[j][i] > A[j][i+1] && A[j][i] > A[j][i-1].
Find a peak element in this matrix. Return the index of the peak.
Example
Given a matrix:
[
[1 ,2 ,3 ,6 ,5],
[16,41,23,22,6],
[15,17,24,21,7],
[14,18,19,20,10],
[13,14,11,10,9]
]
return index of 41 (which is [1,1]) or index of 24 (which is [2,2])
Note
The matrix may contains multiple peeks, find any of them.
Challenge
Solve it in O(n+m) time.
If you come up with an algorithm that you thought it is O(n log m) or O(m
log n), can you prove it is actually O(n+m) or propose a similar but O(n+m)
algorithm?
avatar
c*t
2
有过了的xdjm现身说法一下吧
前两天发过个帖子,我家那里如果出生证明要照片的话,照片要经美国公证机构公证,
再经中国领馆认证,结果一查,如果要做认证,还要先州务卿认证办公室认证.绕那么
多圈就是为了证明照片上的人是我...晕了
avatar
b*i
3
有帖子讨论过
http://www.mitbbs.com/article_t/JobHunting/32967557.html
里面那个pdf我觉得蛮好,不过自己没试过不知道会不会超时

][

【在 t****m 的大作中提到】
: http://www.lintcode.com/en/problem/find-peak-element-ii/
: There is an integer matrix which has the following features:
: The numbers in adjacent positions are different.
: The matrix has n rows and m columns.
: For all i < m, A[0][i] < A[1][i] && A[n - 2][i] > A[n - 1][i].
: For all j < n, A[j][0] < A[j][1] && A[j][m - 2] > A[j][m - 1].
: We define a position P is a peek if A[j][i] > A[j+1][i] && A[j][i] > A[j-1][
: i] && A[j][i] > A[j][i+1] && A[j][i] > A[j][i-1].
: Find a peak element in this matrix. Return the index of the peak.
: Example

avatar
x*g
4
我们出生公证上没照片啊

【在 c**t 的大作中提到】
: 有过了的xdjm现身说法一下吧
: 前两天发过个帖子,我家那里如果出生证明要照片的话,照片要经美国公证机构公证,
: 再经中国领馆认证,结果一查,如果要做认证,还要先州务卿认证办公室认证.绕那么
: 多圈就是为了证明照片上的人是我...晕了

avatar
w*e
5
基本思路还是二分法。
假设有m行,找到m/2行的最大值,这个值大于左右两边(行最大),检查它的上下邻,
如果都比它小,peak found。如果有一个比它大,可以证明必有peak在这半边(这是证
明得关键,因为这个更大值得存在说明这半边矩阵不是complete valley)。可以证明
这个时间复杂度是O(m+n)。

][

【在 t****m 的大作中提到】
: http://www.lintcode.com/en/problem/find-peak-element-ii/
: There is an integer matrix which has the following features:
: The numbers in adjacent positions are different.
: The matrix has n rows and m columns.
: For all i < m, A[0][i] < A[1][i] && A[n - 2][i] > A[n - 1][i].
: For all j < n, A[j][0] < A[j][1] && A[j][m - 2] > A[j][m - 1].
: We define a position P is a peek if A[j][i] > A[j+1][i] && A[j][i] > A[j-1][
: i] && A[j][i] > A[j][i+1] && A[j][i] > A[j][i-1].
: Find a peak element in this matrix. Return the index of the peak.
: Example

avatar
d*y
6
大多数公证处出具的公证书上都有照片,也有网友如楼上的没有照片;
给公证处塞钱能解决的,就给钱;不行,换另外一家公证处
avatar
A*n
8
这个真奇怪,自己照的,cvs洗得,拿回国就公证了啊,什么问题都没有
avatar
b*n
9
如果你有小时候出生证原件的话,就做不要照片的那种出生证公证,翻译出生证上的内
容然后证明与原件一致。
avatar
c*t
10
终于看到有人出生公证没有照片的了。激动一下!谢谢了!
再问一下,有人在中国领馆做过“照片是本人”的公证吗?是把照片拿去就能直接做,
还是要先去美国公证处公证了再去领馆认证。
avatar
c*t
11
谢谢!有个妇保院开的分娩证明,也不知有用没

【在 b********n 的大作中提到】
: 如果你有小时候出生证原件的话,就做不要照片的那种出生证公证,翻译出生证上的内
: 容然后证明与原件一致。

avatar
p*o
12
这个翻译了就可以了。我就是用这个做的。没有问题。

【在 c**t 的大作中提到】
: 谢谢!有个妇保院开的分娩证明,也不知有用没
avatar
p*o
13
觉得公证处找茬,可以换一家公证处试试
avatar
c*t
14
多谢大家了,被这个事情搞死了,哎
再到别处问问吧

【在 p********o 的大作中提到】
: 觉得公证处找茬,可以换一家公证处试试
avatar
y*e
15

我的有。

【在 x*******g 的大作中提到】
: 我们出生公证上没照片啊
avatar
y*e
16

请教一下,我出生公正书的照片是10年前的。行不?

【在 d***y 的大作中提到】
: 大多数公证处出具的公证书上都有照片,也有网友如楼上的没有照片;
: 给公证处塞钱能解决的,就给钱;不行,换另外一家公证处

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。