Redian新闻
>
大喉一声,哪里可以看冬奥会比赛???
avatar
p*e
2
问了三个问题:去美国干啥,几个小孩,房产证
看了看我的资料,就通过了
感觉新系统下形势挺好的
另外请问如果委托别人取件,需要什么证明吗?
avatar
n*s
3
长时间听歌看电视剧导致精神萎靡不振,特想看比赛提提神
avatar
r*u
4
思路是这样的,
1. 如果所有的bar都是按升序从左到右排起来的话,那么,就可以简单的用最小(最左
)的bar的高*n, n是bar的个数,这是一个面积,接着用次小的bar的高*(n-1), ...,
找到max area。
2. 一般bar不是完全按升序排列。就用一个vector去simulate a stack,如果下一个
bar比栈顶的bar高,入栈。
否则的话,pop栈里所有比next bar高的bar,再入栈next bar。并且要计算这过程
中这些pop掉的bar cover的area。
3. 最后处理剩在stack里面的bar。

【在 x***y 的大作中提到】
: .....
avatar
Y*1
5
同问,到时候让朋友帮忙去当时选定的北京的一个中信银行取,朋友需要带上啥凭证吗?
另外,我妈也是刚刚北京1000通过,问了四个问题,去美国做什么?女儿女婿都工作了
么?你退休了么?有没有照片?如实的回答就通过了!形势还不错~

【在 p*****e 的大作中提到】
: 问了三个问题:去美国干啥,几个小孩,房产证
: 看了看我的资料,就通过了
: 感觉新系统下形势挺好的
: 另外请问如果委托别人取件,需要什么证明吗?

avatar
r*y
6
cctv5 搜搜吧 betv可能成 我都是晚上回家看重播 不过我有电视

【在 n***s 的大作中提到】
: 长时间听歌看电视剧导致精神萎靡不振,特想看比赛提提神
avatar
s*i
7
这样计算的面积不重复吗?

【在 r**u 的大作中提到】
: 思路是这样的,
: 1. 如果所有的bar都是按升序从左到右排起来的话,那么,就可以简单的用最小(最左
: )的bar的高*n, n是bar的个数,这是一个面积,接着用次小的bar的高*(n-1), ...,
: 找到max area。
: 2. 一般bar不是完全按升序排列。就用一个vector去simulate a stack,如果下一个
: bar比栈顶的bar高,入栈。
: 否则的话,pop栈里所有比next bar高的bar,再入栈next bar。并且要计算这过程
: 中这些pop掉的bar cover的area。
: 3. 最后处理剩在stack里面的bar。

avatar
l*s
8
同楼上,我查到官网说要申请人的身份证原件、代领人的身份证原件和复印件及授权书
。寄申请人的身份证原件好麻烦啊!
avatar
T*i
9
NBC
avatar
l*s
11
更正下,好像只要授权书、申请人身份证复印件及代领人的身份证原件就可以了。

同楼上,我查到官网说要申请人的身份证原件、代领人的身份证原件和复印件及授权书
。寄申请人的身份证原件好麻烦啊!

【在 l*********s 的大作中提到】
: 同楼上,我查到官网说要申请人的身份证原件、代领人的身份证原件和复印件及授权书
: 。寄申请人的身份证原件好麻烦啊!

avatar
l*u
12
+1
就是美国队镜头太多 :)

【在 T*******i 的大作中提到】
: NBC
avatar
s*i
13
你这不是O(n)

【在 r**u 的大作中提到】
: 思路是这样的,
: 1. 如果所有的bar都是按升序从左到右排起来的话,那么,就可以简单的用最小(最左
: )的bar的高*n, n是bar的个数,这是一个面积,接着用次小的bar的高*(n-1), ...,
: 找到max area。
: 2. 一般bar不是完全按升序排列。就用一个vector去simulate a stack,如果下一个
: bar比栈顶的bar高,入栈。
: 否则的话,pop栈里所有比next bar高的bar,再入栈next bar。并且要计算这过程
: 中这些pop掉的bar cover的area。
: 3. 最后处理剩在stack里面的bar。

avatar
p*e
14
谢谢楼下,我把取件地址改到武汉了,只好让家里人再跑一下了

【在 l*********s 的大作中提到】
: 更正下,好像只要授权书、申请人身份证复印件及代领人的身份证原件就可以了。
:
: 同楼上,我查到官网说要申请人的身份证原件、代领人的身份证原件和复印件及授权书
: 。寄申请人的身份证原件好麻烦啊!

avatar
g*y
15
是O(n)的

【在 s*****i 的大作中提到】
: 你这不是O(n)
avatar
Y*1
16
申请人身份证复印件就可以吗,能给个连接么?
正愁我妈回去坐火车也要身份证原件呢。谢谢!

【在 l*********s 的大作中提到】
: 更正下,好像只要授权书、申请人身份证复印件及代领人的身份证原件就可以了。
:
: 同楼上,我查到官网说要申请人的身份证原件、代领人的身份证原件和复印件及授权书
: 。寄申请人的身份证原件好麻烦啊!

avatar
S*n
17
yes, each bar will be pushed and poped at most once

【在 s*****i 的大作中提到】
: 你这不是O(n)
avatar
C*n
19
one question here, if there are bars Bi, Bi-1, Bi-2 in the stack top that
are higher than current bar Bj
if you remove (Bi, Bi-1, Bi-2), and then push Bj to stack, how do you know
how many bars higher than Bj?
Also, if you meet a bar Bj height equals to the stack top Bi, what will you
do?
Anybody please share if you get clear ideas about this, thanks.

【在 r**u 的大作中提到】
: 思路是这样的,
: 1. 如果所有的bar都是按升序从左到右排起来的话,那么,就可以简单的用最小(最左
: )的bar的高*n, n是bar的个数,这是一个面积,接着用次小的bar的高*(n-1), ...,
: 找到max area。
: 2. 一般bar不是完全按升序排列。就用一个vector去simulate a stack,如果下一个
: bar比栈顶的bar高,入栈。
: 否则的话,pop栈里所有比next bar高的bar,再入栈next bar。并且要计算这过程
: 中这些pop掉的bar cover的area。
: 3. 最后处理剩在stack里面的bar。

avatar
l*r
20
equal就skip呗
这个题的关键是理解最大的矩形肯定要以某个unit为高。。而这个unit能extend到多左
边多
右边则是由stack里的比它低的那个和将要让它pop的那个决定的

one question here, if there are bars Bi, Bi-1, Bi-2 in the stack top that
are higher than current bar Bj
if you remove (Bi, Bi-1, Bi-2), and then push Bj to stack, how do you know
how many bars higher than Bj?
Also, if you meet a bar Bj height equals to the stack top Bi, what will you
do?
Anybody please share if you get clear ideas about this, thanks.

【在 C***n 的大作中提到】
: one question here, if there are bars Bi, Bi-1, Bi-2 in the stack top that
: are higher than current bar Bj
: if you remove (Bi, Bi-1, Bi-2), and then push Bj to stack, how do you know
: how many bars higher than Bj?
: Also, if you meet a bar Bj height equals to the stack top Bi, what will you
: do?
: Anybody please share if you get clear ideas about this, thanks.

avatar
C*n
21
if you skip this equal ones, how do you count it in the max area later?
full solution, please, especially how the max area is updated in each case

you

【在 l*******r 的大作中提到】
: equal就skip呗
: 这个题的关键是理解最大的矩形肯定要以某个unit为高。。而这个unit能extend到多左
: 边多
: 右边则是由stack里的比它低的那个和将要让它pop的那个决定的
:
: one question here, if there are bars Bi, Bi-1, Bi-2 in the stack top that
: are higher than current bar Bj
: if you remove (Bi, Bi-1, Bi-2), and then push Bj to stack, how do you know
: how many bars higher than Bj?
: Also, if you meet a bar Bj height equals to the stack top Bi, what will you

avatar
C*n
22
apart from bar height, it looks like the stack will also need to record the
starting index of a bar height?
for example, the 6 bar heights go like this:
2 2 3 3 1 5
the stack will be [2 3] after meeting 2 2 3 3, and how to upadte max area
after meeting the height 1 (5th bar)?
finally the stack will be [1 5], how to update max area with this final
stack? thanks.

you

【在 l*******r 的大作中提到】
: equal就skip呗
: 这个题的关键是理解最大的矩形肯定要以某个unit为高。。而这个unit能extend到多左
: 边多
: 右边则是由stack里的比它低的那个和将要让它pop的那个决定的
:
: one question here, if there are bars Bi, Bi-1, Bi-2 in the stack top that
: are higher than current bar Bj
: if you remove (Bi, Bi-1, Bi-2), and then push Bj to stack, how do you know
: how many bars higher than Bj?
: Also, if you meet a bar Bj height equals to the stack top Bi, what will you

avatar
g*y
23
stack stores index

the

【在 C***n 的大作中提到】
: apart from bar height, it looks like the stack will also need to record the
: starting index of a bar height?
: for example, the 6 bar heights go like this:
: 2 2 3 3 1 5
: the stack will be [2 3] after meeting 2 2 3 3, and how to upadte max area
: after meeting the height 1 (5th bar)?
: finally the stack will be [1 5], how to update max area with this final
: stack? thanks.
:
: you

avatar
C*n
24
stack stores both height and index information, like a struct {int height,
int index}? thanks for clarification.
in the previous case, if you pop 2,3 and then push 1, it should be {height:1
, index:0} something like this, is my understanding right?

【在 g*******y 的大作中提到】
: stack stores index
:
: the

avatar
r*u
25

对的。你好好琢磨一下,试着code出来,考虑corner cases,没那么难。自己code印象
才深。

【在 C***n 的大作中提到】
: stack stores both height and index information, like a struct {int height,
: int index}? thanks for clarification.
: in the previous case, if you pop 2,3 and then push 1, it should be {height:1
: , index:0} something like this, is my understanding right?

avatar
h*x
26
赞,谢谢了,很好解法。

【在 r**u 的大作中提到】
: 思路是这样的,
: 1. 如果所有的bar都是按升序从左到右排起来的话,那么,就可以简单的用最小(最左
: )的bar的高*n, n是bar的个数,这是一个面积,接着用次小的bar的高*(n-1), ...,
: 找到max area。
: 2. 一般bar不是完全按升序排列。就用一个vector去simulate a stack,如果下一个
: bar比栈顶的bar高,入栈。
: 否则的话,pop栈里所有比next bar高的bar,再入栈next bar。并且要计算这过程
: 中这些pop掉的bar cover的area。
: 3. 最后处理剩在stack里面的bar。

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