avatar
credit score# Living
b*n
1
刚从MIT的网站上看来的:
http://courses.csail.mit.edu/iap/interview/Hacking_a_Google_Interview_Practice_Questions_Person_A.pdf
答案如下:
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.
这个解答会给出一对重叠的长方形,然后返回。如果想要得到所有重叠的长方形,有没有O(nlogn)的解法呢?当BST内部的长方形已经有重叠的时候,要用简单的二分查找好像有点困难。
谢谢大家。
avatar
t*y
2
在SPG订的旅馆通过cash+points的cash部分可以得到相应的点数奖励吗?
我最近才注意到另外的room service花的钱有点数得到, 订旅馆的cash部分却没有相
应的点数回报。 觉得很奇怪。
avatar
l*e
3
儿子上小学二年级,我收到儿子同学的父母发来的Halloween Party的邀请。需要带什
么礼物去呀?多谢各位指点。
avatar
w*t
4
来不及收到卡了。回来时,用AP,H1,护照,还有 485 approval notice。应该没问题
吧?
多谢!!!
avatar
g*t
5
大家买房贷款时的credit score一般都是多少?
这是我的credit scores,够了吗?
experian: 735
transunion: 799
equifax: 796
以上三家满分都是850左右.不知道experian为何那么低.
avatar
A*T
6
没问题,恭喜

来不及收到卡了。回来时,用AP,H1,护照,还有 485 approval notice。应该没问题
吧?
多谢!!!

【在 w***t 的大作中提到】
: 来不及收到卡了。回来时,用AP,H1,护照,还有 485 approval notice。应该没问题
: 吧?
: 多谢!!!

avatar
a*e
7
good enough, but u can check ur credit report

【在 g*******t 的大作中提到】
: 大家买房贷款时的credit score一般都是多少?
: 这是我的credit scores,够了吗?
: experian: 735
: transunion: 799
: equifax: 796
: 以上三家满分都是850左右.不知道experian为何那么低.

avatar
w*t
8
多谢!

【在 A*T 的大作中提到】
: 没问题,恭喜
:
: 来不及收到卡了。回来时,用AP,H1,护照,还有 485 approval notice。应该没问题
: 吧?
: 多谢!!!

avatar
b*d
9
看看你的三合一Report,可能Experian上有个Collection或者Late Payment。不过你的
分数足够了。

【在 g*******t 的大作中提到】
: 大家买房贷款时的credit score一般都是多少?
: 这是我的credit scores,够了吗?
: experian: 735
: transunion: 799
: equifax: 796
: 以上三家满分都是850左右.不知道experian为何那么低.

avatar
s*m
10
I suggest you go to an Infopass to get I-551 stamp on your passport. You
should be admitted as greencard holder, not H-1B visa holder
avatar
w*t
11
多谢。但我确实来不及了,明天就走。
前文看到PhDPharmD大侠,也是如此。所以,来问问。
律师说也没问题,就是可能入境时,会被问到。

【在 s*****m 的大作中提到】
: I suggest you go to an Infopass to get I-551 stamp on your passport. You
: should be admitted as greencard holder, not H-1B visa holder

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