Redian新闻
>
今天坐 UA,超过 2/3 的旅客都是 priority boarding
avatar
今天坐 UA,超过 2/3 的旅客都是 priority boarding# Money - 海外理财
d*8
1
题目和解法如下。 没看懂解法。
Question: Axis Aligned Rectangles
Describe an algorithm that takes an unsorted array of axis‐aligned
rectangles and returns any pair of rectangles that overlaps, if there is such
a pair.
Axis‐aligned means that all the rectangle sides are either parallel or
perpendicular to the x‐ and y‐axis. You can assume that each rectangle
object has two variables in it: the x‐y coordinates of the upper‐left corner
and the bottom‐right corner.
Good Answer: Create a sorted array of the x coordinates of the left and
right edges of the rectangles. Then, use a "scanline" to move from left to
right through the rectangles. Keep a binary search tree containing the y
coordinates of the top and bottom edges of the rectangles that overlap the
scanline. For each element of the array, check whether it is a left or right
edge. If it is a right edge, remove the corresponding top and bottom edges
from the BST. If it is a left edge, search the BST for rectangles that overlap
the current rectangle; if there is one, return the overlap.
Then, add the y coordinates of the top and bottom edges of the rectangle to
the BST. The search takes O(n log n) time, since it takes O(n log n) time to
sort the rectangles and each of the 2n iterations takes O(log n) time.
avatar
P*L
2
Chase UA 卡简直快成街卡了。
机场里屡见 UA 的工作人员向旅客推销这个卡。
现在有 priority boarding 跟以前没有也没啥太大区别,唉……
avatar
i*d
3
印象中要用到range search
就是去BST里面找的时候
不然分析不出来O(nlgn)的 复杂度

such
corner

【在 d***8 的大作中提到】
: 题目和解法如下。 没看懂解法。
: Question: Axis Aligned Rectangles
: Describe an algorithm that takes an unsorted array of axis‐aligned
: rectangles and returns any pair of rectangles that overlaps, if there is such
: a pair.
: Axis‐aligned means that all the rectangle sides are either parallel or
: perpendicular to the x‐ and y‐axis. You can assume that each rectangle
: object has two variables in it: the x‐y coordinates of the upper‐left corner
: and the bottom‐right corner.
: Good Answer: Create a sorted array of the x coordinates of the left and

avatar
l*7
4
全是黄皮肤的吧
avatar
P*l
5
线段重叠题,行程冲突题的升级版。
avatar
P*L
6
我坐的这个航班,白人超过 90%……
跟几个老美聊了一下,他们似乎申的都是 40k (25k after first purchase) 的那个
offer(机场的宣传小册子上的),而且他们认为 25k 已经非常非常好了。

【在 l**7 的大作中提到】
: 全是黄皮肤的吧
avatar
D*y
7
先把x方向左右两条边都sort一下,O(nlgn)
然后用以下的判断:
bool overlap(Rect a, Rect b) {
return ( a.ul.x <= b.lr.x &&
a.ul.y >= b.lr.y &&
a.lr.x >= b.ul.x &&
a.lr.y <= b.ul.y );
}
其中ul是upper left,lr是lower right
找满足a.ul.x <= b.lr.x和a.lr.x >= b.ul.x的
然后把满足条件的矩形的y方向两条边,加上要比较的矩形本身,sort一下
找到满足a.ul.y >= b.lr.y和a.lr.y <= b.ul.y
avatar
A*0
8
UA七八年前就开始在机场摆摊推荐这卡了
那时候是送1万,或者1万5啥的。
而且大力推进会员申请,邀请朋友申请会员拿几百里程什么的。

【在 P*******L 的大作中提到】
: 我坐的这个航班,白人超过 90%……
: 跟几个老美聊了一下,他们似乎申的都是 40k (25k after first purchase) 的那个
: offer(机场的宣传小册子上的),而且他们认为 25k 已经非常非常好了。

avatar
s*m
9
想想都不可能

【在 l**7 的大作中提到】
: 全是黄皮肤的吧
avatar
b*s
10
25K值400多块,不错了
我以前还为了50块的bonus开卡呢
avatar
s*m
11
本来天天研究哪个deal好的人就不多,呵呵
chase amazon送30$我当时也觉得是好deal

【在 P*******L 的大作中提到】
: 我坐的这个航班,白人超过 90%……
: 跟几个老美聊了一下,他们似乎申的都是 40k (25k after first purchase) 的那个
: offer(机场的宣传小册子上的),而且他们认为 25k 已经非常非常好了。

avatar
c*u
12
在sears开卡送10快都当deal的飘过【 在 spm (spm2) 的大作中提到: 】
avatar
e*w
13
曾经在macys店里开卡,第一天15% off。
结果那天我花了一共花了37块。

【在 c****u 的大作中提到】
: 在sears开卡送10快都当deal的飘过【 在 spm (spm2) 的大作中提到: 】
avatar
R*2
14
刚来的时候都这样 8年前某一天我办了两张 bloomingdale lord&taylor 省下几十刀
呵呵

【在 e***w 的大作中提到】
: 曾经在macys店里开卡,第一天15% off。
: 结果那天我花了一共花了37块。

avatar
w*1
15
哈哈,我好像当时买了200

【在 e***w 的大作中提到】
: 曾经在macys店里开卡,第一天15% off。
: 结果那天我花了一共花了37块。

avatar
p*i
16
泪流满面

曾经在macys店里开卡,第一天15% off。
结果那天我花了一共花了37块。

【在 e***w 的大作中提到】
: 曾经在macys店里开卡,第一天15% off。
: 结果那天我花了一共花了37块。

avatar
t*d
17
up
avatar
F*Y
18
MARK
avatar
e*n
19
没来这个版前送10块bonus的卡我都觉得good deal了
avatar
B*y
20
去年我还为Office Depot免费送的把沙滩椅而申过它的店卡,真是不值得。
avatar
h*o
21
来这个版以后都变成人精了
avatar
z*8
22
去年没来这个板之前因为5%discout的差别申请了一张kohls,结果害我申请saphire的
时候被拒,说6个月内申请过信用卡,信用分数不高等等。。。。
avatar
l*w
23
UA是Star Alliance,很多人都是Silver Level的。
根本不用拿信用卡。
avatar
h*7
24
这个priority boarding 只能持卡人自己吗?可以带一个随行人吗?
avatar
h*7
25
另外副卡持有人可以priority boarding吗?可以再带一个人一起boarding吗?
avatar
s*r
26
没啥,priority boarding也是分三类九等的。
有没有这个卡其实差别也不见得多大。
avatar
F*n
27
不知道club那个卡是不是还要priority,哈

【在 s*****r 的大作中提到】
: 没啥,priority boarding也是分三类九等的。
: 有没有这个卡其实差别也不见得多大。

avatar
c*d
28
主卡可以带人,副卡没有priority boarding,除非和主卡持卡人一起

【在 h*********7 的大作中提到】
: 另外副卡持有人可以priority boarding吗?可以再带一个人一起boarding吗?
avatar
c*d
29
这些不过是chase据你而找的理由而已
要是你在chase存个几十万,他们巴不得赶紧给你多开几张卡呢

【在 z********8 的大作中提到】
: 去年没来这个板之前因为5%discout的差别申请了一张kohls,结果害我申请saphire的
: 时候被拒,说6个月内申请过信用卡,信用分数不高等等。。。。

avatar
z*8
30
呵呵,有个几十万就不搞这些卡了,赚点小钱而已

【在 c*****d 的大作中提到】
: 这些不过是chase据你而找的理由而已
: 要是你在chase存个几十万,他们巴不得赶紧给你多开几张卡呢

avatar
P*L
31
主要还是卡导致的,Silver Level 也不是那么容易达到的。
我一年前坐 UA,priority 的人也就是 1/4 的样子。

【在 l*w 的大作中提到】
: UA是Star Alliance,很多人都是Silver Level的。
: 根本不用拿信用卡。

avatar
s*m
32
我花了80刀,当时觉得挺值的

【在 e***w 的大作中提到】
: 曾经在macys店里开卡,第一天15% off。
: 结果那天我花了一共花了37块。

avatar
w*e
33
刚来的时候在gap还是ann taylor买衣服,说开卡有10-15% off,兴高采烈的申了;果
断地被秒拒了

【在 e***w 的大作中提到】
: 曾经在macys店里开卡,第一天15% off。
: 结果那天我花了一共花了37块。

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