Redian新闻
>
纽约附近买房这个预算如何
avatar
纽约附近买房这个预算如何# Living
i*n
1
write a function which takes as input a sorted array A of integers and a
positive integer m, and updates A so that if x appears m times in A, it
appears exactly min(2,m) times in A. The update to A should be in one pass,
and no additional storage may be allocated.
求简洁算法。
avatar
a*e
2
我父母养了三个孩子,只有我一个人有能力给她钱。另外另个虽然早就成年,但都要他
们倒贴。他们要钱要的多了,我也有些烦,我就跟我妈说:我把钱都给你了, 我老了
谁管我。我妈说,你应该靠你的孩子。但是我当时并没有孩子。
当年我自己背着巨额贷款,还生者病。每次给他们打电话他们总跟我说他们生活艰难,
我于心不忍,就给他们寄了5000美元,本意是让他们日子不要那么难过。结果他们拿了
我的钱
盖了当年村里最好的楼房,另外还借了不少钱。这下更穷了。每次给他们打电话,他们
更是哭穷,说不敢吃好的。我气死了。我当时是个留学生,虽然有奖学金,但是一个学
生能有多少钱,都是省吃俭用下来的。我如果像他们那样乱花,会比他们还穷。
后来他们觉得没有孙子丢脸,就花钱领养了孙子。我补贴了10万。为了能让我接着出
钱榜他们养孙子,他们想让那个孩子叫我妈,但是叫他们爷爷奶奶。称谓都是无所谓的
,只要能拿到钱。
前年由于某个原因我又给了我爹8万。我心想他们拿着这个钱应该以后几年不用再给他
们钱。心里刚轻松些,我爹说他想修他们院子的围墙。我刚开始也答应了,心想修围墙
也花不了多少钱。后来仔细一问要花十几万。那就是说我给他们的8万还不够。我想起
来自己艰辛的生活,挣钱的不易,立刻爆发了。跟他们大吵了起来。结果吵架的过程我
爹说出来他当年把钱都给了我爷爷奶奶,没有给我妈养孩子。
我明白了他的逻辑了。在我和弟弟妹妹需要养的时候,他不给钱给我妈养我们,导致我
门三个个个长的矮小呆笨。他并不在意,因为他的了个孝子的名声。现在他要求我用同
样的方式对待他,那就是我不应该把钱拿去养我的孩子,而是应该去让他过的好,因为
这是我应尽的孝心。想到他把我弟弟逼疯,还胡乱花钱,等他死了以后我说不定我
还要接着养我的弟弟和他们领养的孙子。我真是再也受不了了。直接破口大骂。然后断
绝关系了。
这个世界上哪有这样的道理,我需要养的时候他没有尽心,他去孝敬他的父母了。现在
他让我尽孝心,不是因为他当年照顾了我,是因为他照顾了他的父母。中国的孝道真他
妈的操蛋,都是自私的父母的愚人说教。父母子女之间如果真的感情深厚,自然会互相
照顾。说教子女无条件照顾父母就是他妈的无耻。
avatar
y*c
3
税后$11k, 年底大概$50k bonus (pre-tax)
mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
grocer + dine out = $1100
car loan + insurance + gas = $800
Cell + Cable = $250
Life insurance = $250
Two kids school and daycare = $2000
Utilities = $400
Student loan = $120
就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,
每月估计得倒贴些钱。有点大的开销只能去借emergency loan
这样做是不是太冒险?
avatar
j*8
4
lc原题的小变形,加个condition check就行
public int removeDuplicates(int[] A, int m) {
if(A == null || A.length == 0) return 0;
int index = 1, count = 0;
for(int i = 1; i < A.length; i++) {
if(A[i] == A[index-1]) {
if(m >= 2 && count < 1) {//keep it
A[index] = A[i];
index++;
count++;
}
} else {
if(count > 0) count = 0;
A[index] = A[i];
index++;
}
}
return index;
}
avatar
b*m
5
不要抱怨,大多数小地放人都这么想的,投胎是技术活。
avatar
R*g
6
觉得撑就降点预算,觉得不撑就买。
avatar
p*u
8
太撑了把。 你不放401k? 每年应该首先放满这个17000.
平常很多花销你没有列啊?!你们平常都不花钱了? 衣服没个月500有把?你老婆
化装品都每个月有至少200把? 全家旅游呢?
这些零花钱每个月至少上千把.

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
l*a
9
可以不要count吧,直接跟i-2比较即可

【在 j*****8 的大作中提到】
: lc原题的小变形,加个condition check就行
: public int removeDuplicates(int[] A, int m) {
: if(A == null || A.length == 0) return 0;
: int index = 1, count = 0;
: for(int i = 1; i < A.length; i++) {
: if(A[i] == A[index-1]) {
: if(m >= 2 && count < 1) {//keep it
: A[index] = A[i];
: index++;
: count++;

avatar
m*s
10
不冒险。
你工资增长的幅度,绝对比不上纽约房价增长的幅度。

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
j*8
11
有道理,多谢大牛指点

【在 l*****a 的大作中提到】
: 可以不要count吧,直接跟i-2比较即可
avatar
m*f
12
人说了税后收入了,通常理解,这个税后,还包括401k之类所有从paycheck上扣除的钱
了吧。。。

【在 p****u 的大作中提到】
: 太撑了把。 你不放401k? 每年应该首先放满这个17000.
: 平常很多花销你没有列啊?!你们平常都不花钱了? 衣服没个月500有把?你老婆
: 化装品都每个月有至少200把? 全家旅游呢?
: 这些零花钱每个月至少上千把.

avatar
p*u
14
。。。。。城里的话反正房价最近几年没有涨多少。城外我不清楚。
nyc里面,如果工作前几年,工资涨轻快的。

【在 m********s 的大作中提到】
: 不冒险。
: 你工资增长的幅度,绝对比不上纽约房价增长的幅度。

avatar
p*u
16
lol,什么时候把401k定义成税了?401k 你可以不放,paycheck一分都不扣.

【在 m*f 的大作中提到】
: 人说了税后收入了,通常理解,这个税后,还包括401k之类所有从paycheck上扣除的钱
: 了吧。。。

avatar
y*8
17
Make sense. 我最开始的答案就是用的相似的方法。
但是jingi08 的解法个人觉得更好,因为更加通用。min(2,m)可以这么做,min(3,m)或
者min(4,m)都可以。只要加一个参数就可以了。然后比较if count <= M:决定写不写。
当然两种代码都可以过。http://codesays.com/2014/solution-to-remove-duplicates-from-sorted-array-ii-by-leetcode/
我还在苦苦找第一份工作,经验肯定不如前辈,可能考虑不周,请多指教!

【在 l*****a 的大作中提到】
: 其实不是i了
: 弄个read/write 2 index
: 看A[read] and A[write-2]
: does that make sense?

avatar
w*c
18
买房之后身边一分钱不胜,这个不妥。
我家也是月光,但是有emergency fund.
avatar
l*a
19
那把A[write-2]换成A[write-k]是不是就可以了呢?
关于算法,有工作经验的不见得比在校生强吧

【在 y*******8 的大作中提到】
: Make sense. 我最开始的答案就是用的相似的方法。
: 但是jingi08 的解法个人觉得更好,因为更加通用。min(2,m)可以这么做,min(3,m)或
: 者min(4,m)都可以。只要加一个参数就可以了。然后比较if count <= M:决定写不写。
: 当然两种代码都可以过。http://codesays.com/2014/solution-to-remove-duplicates-from-sorted-array-ii-by-leetcode/
: 我还在苦苦找第一份工作,经验肯定不如前辈,可能考虑不周,请多指教!

avatar
s*a
20
6000一个月,真是疯了,还有两个孩子DAYCARE STUDEND LOAN,
哎要我的妈来,我劝LZ赶紧搬家吧,万一被LAYOFF,直接死菜了
avatar
y*8
21
那复杂度就上去了,是O(N*K)了。用个变量存count复杂度始终会是O(N)。
K是容许重复的最大次数。

【在 l*****a 的大作中提到】
: 那把A[write-2]换成A[write-k]是不是就可以了呢?
: 关于算法,有工作经验的不见得比在校生强吧

avatar
p*u
22
是啊,看情况是一个人工作4口之家把, 胆子真大。我一个人我都小心多拉..

【在 s****a 的大作中提到】
: 6000一个月,真是疯了,还有两个孩子DAYCARE STUDEND LOAN,
: 哎要我的妈来,我劝LZ赶紧搬家吧,万一被LAYOFF,直接死菜了

avatar
i*n
23
非常elegant的解法!受教了。

【在 j*****8 的大作中提到】
: lc原题的小变形,加个condition check就行
: public int removeDuplicates(int[] A, int m) {
: if(A == null || A.length == 0) return 0;
: int index = 1, count = 0;
: for(int i = 1; i < A.length; i++) {
: if(A[i] == A[index-1]) {
: if(m >= 2 && count < 1) {//keep it
: A[index] = A[i];
: index++;
: count++;

avatar
s*a
24
4000一个月都有点悬的,还6000

【在 p****u 的大作中提到】
: 是啊,看情况是一个人工作4口之家把, 胆子真大。我一个人我都小心多拉..
avatar
a*3
25
updates A so that if x appears m times in A, it appears exactly min(2,m)
times in A.
这题意思不应该是如果一个数在数组里面正好出现了m次,才把这个数的出现次数调整
为min(2.,m)么?如果这个数出现次数不等于m次不应该全部保留下来么?
还是说我理解有问题。。?
avatar
p*u
26
不对头,搞不好是来挖坑的。我门都上当了。楼主水平高啊...

【在 s****a 的大作中提到】
: 4000一个月都有点悬的,还6000
avatar
i*n
27
取2和m中的较小者。

【在 a*******3 的大作中提到】
: updates A so that if x appears m times in A, it appears exactly min(2,m)
: times in A.
: 这题意思不应该是如果一个数在数组里面正好出现了m次,才把这个数的出现次数调整
: 为min(2.,m)么?如果这个数出现次数不等于m次不应该全部保留下来么?
: 还是说我理解有问题。。?

avatar
b*3
28
感觉4000比较靠谱,6000只怕是10年的loan吧。
税后110k,这加bonus税前也有210k了吧,感觉够了。

【在 s****a 的大作中提到】
: 4000一个月都有点悬的,还6000
avatar
l*a
29
why O(N*K)呢?
每个需要处理K次?没有啊

【在 y*******8 的大作中提到】
: 那复杂度就上去了,是O(N*K)了。用个变量存count复杂度始终会是O(N)。
: K是容许重复的最大次数。

avatar
s*a
30
请问LZ是不是离婚了?LOL
avatar
B*t
31
class Solution {
public:
int removeDuplicates(int A[], int n) {
if (n <= 2) return n;
int c = 0, l = 0, r = 0;
while (r < n) {
while (r < n && A[l] == A[r]) r++;
l = r - l > 2 ? r - 2 : l;
while (l != r) A[c++] = A[l++];
}
return c;
}
};
avatar
p*u
32
竟然敢不预算钱给老婆。。转家版去我看这个贴子要火。

【在 s****a 的大作中提到】
: 请问LZ是不是离婚了?LOL
avatar
t*t
33
新学位能拿新的CPT么?我觉得你直接找工作为好。刷题进flg,visa对他们应该没问题
avatar
m*s
34
你这城里,得看是哪个城里了。几街以内啊??

【在 p****u 的大作中提到】
: 。。。。。城里的话反正房价最近几年没有涨多少。城外我不清楚。
: nyc里面,如果工作前几年,工资涨轻快的。

avatar
h*e
35
这是程序论坛的bug? 我怎么在讨论rmv duplicate II 里看到你的回复了。

【在 t***t 的大作中提到】
: 新学位能拿新的CPT么?我觉得你直接找工作为好。刷题进flg,visa对他们应该没问题
: 。

avatar
l*o
36
太撑了吧。。。

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
i*n
37
write a function which takes as input a sorted array A of integers and a
positive integer m, and updates A so that if x appears m times in A, it
appears exactly min(2,m) times in A. The update to A should be in one pass,
and no additional storage may be allocated.
求简洁算法。
avatar
p*u
38
说城里我们一般是指manhattan 的 central park 以南和两边. 周围广大地方统一称为
农村。。

【在 m********s 的大作中提到】
: 你这城里,得看是哪个城里了。几街以内啊??
avatar
j*8
39
lc原题的小变形,加个condition check就行
public int removeDuplicates(int[] A, int m) {
if(A == null || A.length == 0) return 0;
int index = 1, count = 0;
for(int i = 1; i < A.length; i++) {
if(A[i] == A[index-1]) {
if(m >= 2 && count < 1) {//keep it
A[index] = A[i];
index++;
count++;
}
} else {
if(count > 0) count = 0;
A[index] = A[i];
index++;
}
}
return index;
}
avatar
s*a
40
LZ这么有钱,看看能不能招赘一个,也不买衣服包包啊首饰啥的,看样子没老婆

【在 p****u 的大作中提到】
: 竟然敢不预算钱给老婆。。转家版去我看这个贴子要火。
avatar
b*3
42
90W一室一厅。。何必呢。。。

【在 p****u 的大作中提到】
: 说城里我们一般是指manhattan 的 central park 以南和两边. 周围广大地方统一称为
: 农村。。

avatar
l*a
43
可以不要count吧,直接跟i-2比较即可

【在 j*****8 的大作中提到】
: lc原题的小变形,加个condition check就行
: public int removeDuplicates(int[] A, int m) {
: if(A == null || A.length == 0) return 0;
: int index = 1, count = 0;
: for(int i = 1; i < A.length; i++) {
: if(A[i] == A[index-1]) {
: if(m >= 2 && count < 1) {//keep it
: A[index] = A[i];
: index++;
: count++;

avatar
m*s
44
central park周边的豪宅都成城外的了。
版主,你也太狠了吧。

【在 p****u 的大作中提到】
: 说城里我们一般是指manhattan 的 central park 以南和两边. 周围广大地方统一称为
: 农村。。

avatar
j*8
45
有道理,多谢大牛指点

【在 l*****a 的大作中提到】
: 可以不要count吧,直接跟i-2比较即可
avatar
p*u
46
我说了central park 两边啊.
再说,毫宅可不一定非要在城里啊.

【在 m********s 的大作中提到】
: central park周边的豪宅都成城外的了。
: 版主,你也太狠了吧。

avatar
m*s
48
两边还得排在南边后面,还居然说毫宅可不一定非要在城里
版二,你太狠了啊。

【在 p****u 的大作中提到】
: 我说了central park 两边啊.
: 再说,毫宅可不一定非要在城里啊.

avatar
y*c
50
Only getting the company match for 401K. Other expense will have to rely on
bonus. Good thing is job security is damn good (looking around though still
hoping for a raise) and bonus is rather stable.
Plan is to survive the next two years. After that, kids all go to school and
car loan is gone too. Likely income maybe up another 10~15% if not more.
The neighborhood is in Westchester, really like it and hence the willingness
to risk

【在 p****u 的大作中提到】
: 太撑了把。 你不放401k? 每年应该首先放满这个17000.
: 平常很多花销你没有列啊?!你们平常都不花钱了? 衣服没个月500有把?你老婆
: 化装品都每个月有至少200把? 全家旅游呢?
: 这些零花钱每个月至少上千把.

avatar
y*8
51
Make sense. 我最开始的答案就是用的相似的方法。
但是jingi08 的解法个人觉得更好,因为更加通用。min(2,m)可以这么做,min(3,m)或
者min(4,m)都可以。只要加一个参数就可以了。然后比较if count <= M:决定写不写。
当然两种代码都可以过。http://codesays.com/2014/solution-to-remove-duplicates-from-sorted-array-ii-by-leetcode/
我还在苦苦找第一份工作,经验肯定不如前辈,可能考虑不周,请多指教!

【在 l*****a 的大作中提到】
: 其实不是i了
: 弄个read/write 2 index
: 看A[read] and A[write-2]
: does that make sense?

avatar
w*c
52
买房后完全没存款,但是年底会有bonus进来?那就买吧。

on
still
and
willingness

【在 y******c 的大作中提到】
: Only getting the company match for 401K. Other expense will have to rely on
: bonus. Good thing is job security is damn good (looking around though still
: hoping for a raise) and bonus is rather stable.
: Plan is to survive the next two years. After that, kids all go to school and
: car loan is gone too. Likely income maybe up another 10~15% if not more.
: The neighborhood is in Westchester, really like it and hence the willingness
: to risk

avatar
l*a
53
那把A[write-2]换成A[write-k]是不是就可以了呢?
关于算法,有工作经验的不见得比在校生强吧

【在 y*******8 的大作中提到】
: Make sense. 我最开始的答案就是用的相似的方法。
: 但是jingi08 的解法个人觉得更好,因为更加通用。min(2,m)可以这么做,min(3,m)或
: 者min(4,m)都可以。只要加一个参数就可以了。然后比较if count <= M:决定写不写。
: 当然两种代码都可以过。http://codesays.com/2014/solution-to-remove-duplicates-from-sorted-array-ii-by-leetcode/
: 我还在苦苦找第一份工作,经验肯定不如前辈,可能考虑不周,请多指教!

avatar
m*m
54
$11k是每月?$50k是每年?这么低啊。

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
y*8
55
那复杂度就上去了,是O(N*K)了。用个变量存count复杂度始终会是O(N)。
K是容许重复的最大次数。

【在 l*****a 的大作中提到】
: 那把A[write-2]换成A[write-k]是不是就可以了呢?
: 关于算法,有工作经验的不见得比在校生强吧

avatar
W*g
56
税前年收入25万,以20% downpayment买超过1M的房子,能贷到款?

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
i*n
57
非常elegant的解法!受教了。

【在 j*****8 的大作中提到】
: lc原题的小变形,加个condition check就行
: public int removeDuplicates(int[] A, int m) {
: if(A == null || A.length == 0) return 0;
: int index = 1, count = 0;
: for(int i = 1; i < A.length; i++) {
: if(A[i] == A[index-1]) {
: if(m >= 2 && count < 1) {//keep it
: A[index] = A[i];
: index++;
: count++;

avatar
y*c
58
能问一下你们家月光是暂时的还是三五年内都会如此?有点担心月光的压力导致家庭不
和。除此之外觉得还是可以manageable

【在 w******c 的大作中提到】
: 买房之后身边一分钱不胜,这个不妥。
: 我家也是月光,但是有emergency fund.

avatar
a*3
59
updates A so that if x appears m times in A, it appears exactly min(2,m)
times in A.
这题意思不应该是如果一个数在数组里面正好出现了m次,才把这个数的出现次数调整
为min(2.,m)么?如果这个数出现次数不等于m次不应该全部保留下来么?
还是说我理解有问题。。?
avatar
l*o
60
难道不是90万的房子?

【在 W****g 的大作中提到】
: 税前年收入25万,以20% downpayment买超过1M的房子,能贷到款?
avatar
i*n
61
取2和m中的较小者。

【在 a*******3 的大作中提到】
: updates A so that if x appears m times in A, it appears exactly min(2,m)
: times in A.
: 这题意思不应该是如果一个数在数组里面正好出现了m次,才把这个数的出现次数调整
: 为min(2.,m)么?如果这个数出现次数不等于m次不应该全部保留下来么?
: 还是说我理解有问题。。?

avatar
r*g
62
你这么算就错了。
你要估计你未来若干年搬家前的年平均收入。layoff风险打个折扣,工资奖金上涨加个
期望,然后算。
在纽约,把当前收入当作常数来预算,就是刻舟求剑一样的错误。

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
l*a
63
why O(N*K)呢?
每个需要处理K次?没有啊

【在 y*******8 的大作中提到】
: 那复杂度就上去了,是O(N*K)了。用个变量存count复杂度始终会是O(N)。
: K是容许重复的最大次数。

avatar
W*g
64
楼主说的是PL90万,房价是PL加上首付吧?

【在 l*****o 的大作中提到】
: 难道不是90万的房子?
avatar
t*t
65
新学位能拿新的CPT么?我觉得你直接找工作为好。刷题进flg,visa对他们应该没问题
avatar
g*q
66
LZ包括了不少home improvement budget了吧.72万贷款一般月供也就3500吧.

【在 s****a 的大作中提到】
: 6000一个月,真是疯了,还有两个孩子DAYCARE STUDEND LOAN,
: 哎要我的妈来,我劝LZ赶紧搬家吧,万一被LAYOFF,直接死菜了

avatar
h*e
67
这是程序论坛的bug? 我怎么在讨论rmv duplicate II 里看到你的回复了。

【在 t***t 的大作中提到】
: 新学位能拿新的CPT么?我觉得你直接找工作为好。刷题进flg,visa对他们应该没问题
: 。

avatar
g*e
68
人家说的是LP,难道不是listing price?

【在 W****g 的大作中提到】
: 楼主说的是PL90万,房价是PL加上首付吧?
avatar
f*t
69
// write a function which takes as input a sorted array A of integers and a
positive integer m, and updates A so that if x appears m times in A, it
appears exactly min(2,m) times in A. The update to A should be in one pass,
and no additional storage may be allocated.
void deduplicate(vector &A, unsigned m) {
if (A.size() < 3 || m < 3) {
return;
}
unsigned count = 1;
int pre = A[0];
unsigned left = 0;
unsigned copyIdx = 0;
for (unsigned right = 1; right < A.size(); ++right) {
if (A[right] == pre) {
++count;
} else {
unsigned bar = right;
if (count == m) {
bar = left + 2;
}
while (left < bar) {
A[copyIdx++] = A[left++];
}
left = right;
pre = A[right];
count = 1;
}
}
unsigned bar = A.size();
if (count == m) {
bar = left + 2;
}
while (left < bar) {
A[copyIdx++] = A[left++];
}
A.erase(A.begin() + copyIdx, A.end());
}
avatar
m*s
70


【在 g**e 的大作中提到】
: 人家说的是LP,难道不是listing price?
avatar
f*t
71
Will, if the dup is m - 1, or m + 1 ....., it need to be all copied, based
on what 楼主 said.

【在 j*****8 的大作中提到】
: lc原题的小变形,加个condition check就行
: public int removeDuplicates(int[] A, int m) {
: if(A == null || A.length == 0) return 0;
: int index = 1, count = 0;
: for(int i = 1; i < A.length; i++) {
: if(A[i] == A[index-1]) {
: if(m >= 2 && count < 1) {//keep it
: A[index] = A[i];
: index++;
: count++;

avatar
w*c
72
和你们差不多,有2 daycare娃+车贷 2600,3,5年后会好很多,熬熬就过了。

【在 y******c 的大作中提到】
: 能问一下你们家月光是暂时的还是三五年内都会如此?有点担心月光的压力导致家庭不
: 和。除此之外觉得还是可以manageable

avatar
y*c
73
Actually not. Property tax runs around $25k for a $900k house in that town...

【在 g*q 的大作中提到】
: LZ包括了不少home improvement budget了吧.72万贷款一般月供也就3500吧.
avatar
y*c
74
True, listing for $900K and I plan to put down 20%

【在 g**e 的大作中提到】
: 人家说的是LP,难道不是listing price?
avatar
y*c
75
这个。。。好像。。。不好操作把

【在 r*g 的大作中提到】
: 你这么算就错了。
: 你要估计你未来若干年搬家前的年平均收入。layoff风险打个折扣,工资奖金上涨加个
: 期望,然后算。
: 在纽约,把当前收入当作常数来预算,就是刻舟求剑一样的错误。

avatar
a*a
76
年底5w bonus,干嘛都够了, 除非要向投行大头目学习花钱
不过正经地还是能把car student loan先还掉,再琢磨房子, NYC城里头供房确实很贵
avatar
g*e
77
scarsdale那边正常吧。长岛也正常

...

【在 y******c 的大作中提到】
: Actually not. Property tax runs around $25k for a $900k house in that town...
avatar
a*a
78
俺以为是loan principal

【在 m********s 的大作中提到】
: 是
avatar
a*a
79
3% property tax... 加上冬天取暖
东岸大城市也很艰苦啊

...

【在 y******c 的大作中提到】
: Actually not. Property tax runs around $25k for a $900k house in that town...
avatar
l*o
80
那边税很高的...

【在 g*q 的大作中提到】
: LZ包括了不少home improvement budget了吧.72万贷款一般月供也就3500吧.
avatar
t*e
81
暂时撑

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
g*q
82
NJ税才高,NY不高吧

【在 l*****o 的大作中提到】
: 那边税很高的...
avatar
p*u
83
nyc里面的property tax rate很低的。不过多加了个city income tax,这个比较高.

【在 a********a 的大作中提到】
: 年底5w bonus,干嘛都够了, 除非要向投行大头目学习花钱
: 不过正经地还是能把car student loan先还掉,再琢磨房子, NYC城里头供房确实很贵

avatar
p*u
84
long island为什么tax那么高?那么偏远地带

【在 g**e 的大作中提到】
: scarsdale那边正常吧。长岛也正常
:
: ...

avatar
l*o
85
westchester那里很高的

【在 g*q 的大作中提到】
: NJ税才高,NY不高吧
avatar
N*D
86
有些冒险 Scarsdale 百万以下的房子大多都要修修补补 这个要计划进去
两个小孩preschool两千刀很难拿下 怎么着也得近三千

★ 发自iPhone App: ChineseWeb 7.8
★ 发自iPhone App: ChineseWeb 7.8

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
s*a
87
每个月至少500刀的修补费

【在 N**D 的大作中提到】
: 有些冒险 Scarsdale 百万以下的房子大多都要修修补补 这个要计划进去
: 两个小孩preschool两千刀很难拿下 怎么着也得近三千
:
: ★ 发自iPhone App: ChineseWeb 7.8
: ★ 发自iPhone App: ChineseWeb 7.8

avatar
l*l
88

一个人上班这工资还行,两个人比较撑啊。。。

【在 y******c 的大作中提到】
: 税后$11k, 年底大概$50k bonus (pre-tax)
: mortgage + tax + insurance + maintainance = $6000 (900k LP, 20% down)
: grocer + dine out = $1100
: car loan + insurance + gas = $800
: Cell + Cable = $250
: Life insurance = $250
: Two kids school and daycare = $2000
: Utilities = $400
: Student loan = $120
: 就这些算下来已经$10.9k, 还没包括其它杂七杂八的东西。买房之后身边一分钱不胜,

avatar
y*s
89
It's good enough. Go for it!

on
still
and
willingness

【在 y******c 的大作中提到】
: Only getting the company match for 401K. Other expense will have to rely on
: bonus. Good thing is job security is damn good (looking around though still
: hoping for a raise) and bonus is rather stable.
: Plan is to survive the next two years. After that, kids all go to school and
: car loan is gone too. Likely income maybe up another 10~15% if not more.
: The neighborhood is in Westchester, really like it and hence the willingness
: to risk

avatar
s*a
90
如果WATER HEATER, 空调、FURNACE、或者房瓦要换的,
你这个就很困难了。15年以上的房子,要换这些都是正常的
avatar
l*l
91

495北边几个township per 100 tax 都超过900了,全美都是第一吧。相对来说威郡还
算正常的。

【在 p****u 的大作中提到】
: long island为什么tax那么高?那么偏远地带
avatar
N*D
92
Scarsdale is $902 and its not the highest in westchester

★ 发自iPhone App: ChineseWeb 7.8

【在 l********l 的大作中提到】
:
: 495北边几个township per 100 tax 都超过900了,全美都是第一吧。相对来说威郡还
: 算正常的。

avatar
N*D
94
650 is well underestimated number. If you google the highest property tax by
counties, you'll find westchester ranked as no.1 in almost every website.
However, considering Nassau county has a lower median house price, it could
have somewhat higher tax per home price ratio than westchester.

【在 l********l 的大作中提到】
:
: 个别现象,威郡2012 avg 是650,低于罗莎抗体。
: 具体参见:
: http://www.city-data.com/forum/long-island/1208326-long-island-
: http://www.city-data.com/forum/westchester-county/1211913-long-

avatar
l*l
96

by

could
按说的光是school Tax Rate per 100 of Assessed Value!!!你说的是property
tax + school tax...
如果都算得花li这几个town都在1200 - 1300。
关键重要的一条是开车30 mins到法拉盛,光这条就值1% tax了。

【在 N**D 的大作中提到】
: 650 is well underestimated number. If you google the highest property tax by
: counties, you'll find westchester ranked as no.1 in almost every website.
: However, considering Nassau county has a lower median house price, it could
: have somewhat higher tax per home price ratio than westchester.

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