由买买提看人间百态

topics

全部话题 - 话题: caculate
首页 上页 1 2 3 4 下页 末页 (共4页)
e*****0
发帖数: 82
1
来自主题: JobHunting版 - Bloomberg, Microsoft, Indeed, ebay面试题
全部都是第一轮的,希望能有on-site
Bloomberg
1st on campus, 45min * 2
1. why choose bloomberg
2. latest project
3. reverse an integer
4. 25 horses, 5 horses in a race, minimum number of races needed to find top
3 horses (answser: 7)
5. 3 mislabeled boxes, 1 with apple, 1 with orange, 1 mixed, each time one
can take 1 fruit from a box, minimum number of times needed to label the
boxes (answer:1)
1. what sorting algorithms u know
how is merge sort improved over bubble sort
2. binary search tree, in-order ... 阅读全帖
f***i
发帖数: 162
2
来自主题: JobHunting版 - Bloomberg, Microsoft, Indeed, ebay面试题
3. currency caculation, graph
这个题是什么?

top
l*********8
发帖数: 4642
3
来自主题: JobHunting版 - Divide Two Integers
我也练习一个:
// caculate a/b
int devide(int a, int b)
{
if (b==0) throw std::overflow_error("Divide by zero exception");
if (a<0) return -devide(-a,b);
if (b<0) return -devide(a,-b);
if (a int d = 1;
while(b>0 && b<=a) {
b <<= 1;
d <<= 1;
}
b = unsigned int(b) >> 1;
d = unsigned int(d) >> 1;
int ans = 0;
while(b) {
ans += d;
a -= b;
while(b>a) {
b >>= 1;
d >>= 1;
}
}
return ans;
}
l*********8
发帖数: 4642
4
来自主题: JobHunting版 - Divide Two Integers
我也练习一个:
// caculate a/b
int devide(int a, int b)
{
if (b==0) throw std::overflow_error("Divide by zero exception");
if (a<0) return -devide(-a,b);
if (b<0) return -devide(a,-b);
if (a int d = 1;
while(b>0 && b<=a) {
b <<= 1;
d <<= 1;
}
b = unsigned int(b) >> 1;
d = unsigned int(d) >> 1;
int ans = 0;
while(b) {
ans += d;
a -= b;
while(b>a) {
b >>= 1;
d >>= 1;
}
}
return ans;
}
p****a
发帖数: 4829
5
来自主题: JobHunting版 - 报offer,fresh,pure storage
according to famous option Black-Scholes formula. There are online
caculators for it:
http://www.fintools.com/resources/online-calculators/options-ca
z*********n
发帖数: 1451
6

也放松一下,贴个以前写的编译时间计算int to Roman number的C++ metaprogramming
, 学生时在实验室天天就玩这种东西了:
class R2I {
const static int DIG;
public:
constexpr static char IN[] = "MCDXLVI"; ///This is the INPUT number;
const static int OUT;
};
template struct ID {};
template <> struct ID <'I'> { static const int I = 0; static const int V = 1
; };
template <> struct ID <'V'> { static const int I = 1; static const int V = 5
; };
template <> struct ID <'X'> { static const int I = 2; static const int V =
10... 阅读全帖
d***t
发帖数: 253
7
来自主题: Living版 - Re: online calculator for Mortgage
why don't you just use the caculator on bankrate.com, it's accurate and even
provides a detailed amortization table telling you how much pricipals and
intereste you will be paying for each month and in total. And you can also
try input extra payments on top of the required monthly payment to see how
sooner your mortgage can be paid off.
link:
http://www.bankrate.com/brm/mortgage-calculator.asp?nav=mtg&page=calc_home

some
up
be
a*******g
发帖数: 80
8
来自主题: Living版 - Re: confused about why to buy house
I just want to find the reasonable explains. I know house will be more
comfortable than an apt, how ever, you should take more hours on the way to
work or home. I heard somebody said he saved all rent and earned money
because of buying a house. I am just comfused of that. I only want to discuss
it based on buying house is a investment. And I didn't found my caculation 错
误百出. 270K tatol price, -20K down payment--mortgage should be 250K, right?
30 year, monthly payment should be 1324, than 13
F***Z
发帖数: 703
9
☆─────────────────────────────────────☆
pitts (小马) 于 (Mon Sep 18 15:47:45 2006) 提到:
想从中国进口一些家具(起居室, 卧室)自用, 有几个问题:
1. 有什么检验标准需要满足? 比如某类物质的排放啊. 如果有在那里可以查到呢?
2. 在中国是不是必须找有进出口资格的贸易代理商来办出口?
先谢谢了!
☆─────────────────────────────────────☆
skysummit (秒手空空) 于 (Mon Sep 18 15:50:11 2006) 提到:
bedroom furniture are subject to 200% anti-dumping duty.

☆─────────────────────────────────────☆
jeeves (coala-潜水潜水潜水) 于 (Tue Sep 12 20:03:20 2006) 提到:
interest is caculated on daily basis bah?
☆────────
y**i
发帖数: 1471
10
来自主题: Living版 - mortgage rate
Assuming that I am able to pay some money to the 本金 every paycheck, bi-
weekly payment is always better than the monthly payment, since the interest
will be caculated based on the new 本金 on the second bi-week ?
_____________
if you can afford it, of course.
p**q
发帖数: 535
11
all these mileage is tax dedutible
But for the depreciation, it will be counted to caculate the capital gain
when the house is sold.
n*****o
发帖数: 48
12
来自主题: Living版 - ING 的 rate renew值得做吗?
不知道这个问题是否属于mortgage 101之类的问题,如果是,请大家轻拍
比较这2种情况
1)ing rate renew, 5 year arm from 4.5% to 3.625%, 1 month payment as fee,
which is $2135. No other type of fee at all, can't refinance in 12 month
otherwise have to pay some penalty. This will NOT extend the time I pay off
my mortgage
2) no cost refinance, 5 year arm is around 3.5%. I don't know how much fee
associate with this, like appraisal ...
this will re-caculate my mortgage to another 30 years
刚刚给ing打了一个电话,详细问了问。他们的representive说他们的renew rate
e****d
发帖数: 193
13
来自主题: Living版 - 请教提前还贷款的时机?
bankrate.com 有caculator,自己算算,很就明白了.
x*******g
发帖数: 1363
14
Number One: Short sale is a big headache, you have to stick to your contract
for 6 months and more ( over 1 year) without a guarantee deal -- you can't buy another one
during this waiting period. You need a good lawyer, be flexible for not
locking your mortage rate for monthes becusae you don't know if you can
close the house or when.
Number two: Due to this reason, short sale prices has to be a lot lower than
the market price, and you don't care if you lose it after one year's waiting.
Number... 阅读全帖
i****k
发帖数: 236
15
来自主题: Living版 - 空调不吹冷风了
heat pump是在冬天把室外的热量转移到室内,所以要比燃烧煤气,或电阻丝加热产生
的热量便宜的多。省1/3的电费。(我的furance用电的,平时温度设定在65~68度,因
为有小孩,所以不能太低) 房子大小都可以用,要看功率BTU。
照着现在油价趋势,今年电费也要涨。
具体HVACR价钱我不太清楚,只知道技术上的一点东西。SEER 10 的机器是应该不是新
生产的。现在的新机器都是13以上的。
还有就是机器匹配的问题。因为不是整套安装,需要安装好了之后,测算一下,
superheat或者subcool。有公式,只要在允许的范围内就可以了。
google "caculate superheat"
最近买房做房屋检查的人少了,都在修空调了。早知我去修空调了。
a****a
发帖数: 359
16
Thanks, but the APR is lower than rate, so my monthly payment will be
caculate by rate or APR? Will it change during the first five year?
g***3
发帖数: 2304
17
来自主题: Living版 - co问撑不撑
我考古出来也是这个,税前收入x3. 但是我刚刚去网上用 loan caculator算了下, 贷
款450k,30年,4% APR, monthly payment 也就是2100多啊。 是不是有很多隐性开销?

w******t
发帖数: 16937
18
来自主题: Living版 - co问撑不撑
考古?3年前,5.375就是好利率,8年前,6.0就是好利率,15年前,8.0就是好利率。

我考古出来也是这个,税前收入x3. 但是我刚刚去网上用 loan caculator算了下, 贷
款450k,30年,4% APR, monthly payment 也就是210........
★ Sent from iPhone App: iReader Mitbbs Lite 7.56
m*********t
发帖数: 1250
19
来自主题: Living版 - 10万收入能买多少钱的房子
这个问题以前也纠结过,大概是:
20% Downpay (6万)+ Closing Cost (大几千) + 12/18个month的PITI (sum of mon
thly principal, interest, taxes, and insurance)
后面PITI的cash reserve根据不同lender和mortgage type (Fixed or ARM)要求有所不
同~
你可以google mortgage caculator大概估算一下~
s********n
发帖数: 943
20
来自主题: Money版 - ranch 99不在discover 5%里面
how did you find it out
if 给ranch995%的cashback
from my statment, after caculation
it looks it gives 5% cash back for ranch99
y*****7
发帖数: 2869
21
来自主题: Money版 - 怎么算
google mortgage rate caculator ,they will give you how much you paid to the
bank how much over the years
s***n
发帖数: 76
22
我拿到AMEX75000points,准备transfer到skymiles, 点了这个link: http://dmn.delta.com/offers/getmore/
连到AMEX TRANSFER POINTS网页,但那个caculator没有显示任何50%bonus,还是1:1
,不需要管它吗?
f********i
发帖数: 8412
23
来自主题: Money版 - FIA这个显示是什么意思?
how did you caculate? 175.99+824 =1000. 600 not posted yet
f********i
发帖数: 8412
24
should be 10000, bonus miles are caculated based on accumulated miles
transferred.
c****8
发帖数: 377
25
来自主题: Money版 - Contractor 似乎要跑路了
who can validate the $ I lost?
You, as a home owner. You need to caculate the amount/damages your
contractor owe you.
Or You can ask some other contractors to quote you how much it costs to
finish the abandoned project.
Please prepare all your documents right now.( timeline, Receipts,Pictures,
Check you paid, Contract, Oral agreement etc.)
Then, you should send the contractor written notification that the
contractor has breached his agreement, and that the homeowner is going to
mitigate damages ... 阅读全帖
f********i
发帖数: 8412
26
not ture. I upgraded my phone from ip5 to ip6+ at bestbuy in this Jan. Thoug
h the tax was caculated based on the orignal price, not the contract price.
I'm in CA.
s*****g
发帖数: 7857
27
来自主题: NextGeneration版 - 怀孕13周, 流血块, 求祝福
yes.
somebody will have this situation at first trimester. Thus someboday can not
accurate caculate the correct due date by period.
But the baby is fine.
For you, you might go to se OB and do not worry. It it is a health fetus, it
will be fine. if it is NOT, it will go.
You still have many chance to have the health babies.
Bless!
A********r
发帖数: 2640
28
Due Date:10/5
ID: Athenaever
用due date caculator算出来的
http://www.justmommies.com/duedate.shtml
m**k
发帖数: 18660
29
Yes. I have experience about 24 caculation.. it is all about memory some
formulars.
S*******9
发帖数: 368
30
来自主题: Parenting版 - abacus math
Thank You for Sharing!! I also heard this is designed for six yrs old and
younger to help with developping left brain and inproving the caculation
speed. any shortcomings??
s***y
发帖数: 416
31
来自主题: PennySaver版 - 外包装丢掉了,东西还能退吗?
上周花$10买了个CVS牌子的caculator,根本没想到会有质量问题,就把外包装丢掉了
(一次性硬塑的壳子)。刚发现一个数字键不灵,这种情况还能退吗?不想白跑一趟,
所以请教大家,谢谢!
b**j
发帖数: 415
32
来自主题: Returnee版 - 回国工资参考
this is the way too much. let me caculate for you.
Assume right know one is age 35, then there is some 20 years to go (by the
time you are 55, your kids went to college, so you are free to go):
to maintain a decent life in a normal city, assume spend rmb6000/m,
then 6000X12X20=144wan
assume you now have us$ deposit 100k by the time you return, 100k=rmb60wan
then (144-60)=84wan
84wan/20year=4.2wan/year
this is assume you don't need to buy a house,
if you need buy a house, then you need double you
b******7
发帖数: 733
33
来自主题: Stock版 - Is it true or not about BCRX?
Based on his caculation, the Japan market itself will push the stock price
to 20-30$. Why the price still is only $ 8?

triggering
royalty
in
peramivir
g****d
发帖数: 88
34
Here is the formula to caculate the difference with or without fee.
If we assume annual return rate before fee is X and annual fee is Y, after Z
years, the total return for an account without fee is:
(1.0 + X)^Z - 1.0
The return with the fee is:
(1.0 + X - Y)^Z - 1.0
Sample 1: X=5%, Y=2%, Z=30 years
return without fee = 332%, return with fee = 143%.
Cost of fee = 57% of your total return.
Sample 2: X=8% Y=1%, Z=30 Years
return without fee = 1006%, return with fee = 574%.
Cost of fee = 43% of you... 阅读全帖
G*****S
发帖数: 303
35
来自主题: Stock版 - 新浪的准确伏击点出来了!
how to caculate?
很准的a
z***n
发帖数: 789
36
来自主题: Stock版 - 卖IWM,options,的算法
option caculator 有app, 你找一下
P******l
发帖数: 1648
37
I was caculating it last night. that means nasdaq 54% from yesterday's
close to all time high.
top % wise components target for this heavy lifting
aapl 450->700
msft 33->48
goog 840->1200
orcl 34->51
vod 30->45
intc 24->36
amzn 260->390
cmcsa 42->63
csco 21->31
qcom 64->100
y*m
发帖数: 4
38
You should receive another form (sorry, I forgot the name of
this form) from your school along with your W-2. That
means this $5000 had been deducted from your taxable income
before you started to caculate your other deductions and
expemption. For example, if your made $10,000 in 1999,
first you need to subtract $5000 from your salary. In your
case, you did not have other itemized deduction such as
charity contribution, medical expense...except your state
tax. State tax should be included a
k***e
发帖数: 7933
39
there is a formula to caculate, google online
g**f
发帖数: 38
40
来自主题: Working版 - Re: cnn news:U.S. housing starts fall
i am not sure that is the right strategy though, at least
not for everybody.
statisitc shows the average american familly lives in the
same house for about 7 years, in other words, most americans
sell the current house and buy a new one around every 7
years.
let's assume you are an average american and to make the
caculation simple, assuming you buy a house now for 300k and
no down payment is needed, you take 300k loan to pay for the
house. plus we take a optimistic projection that the house
val
h***e
发帖数: 232
41
Eb12 is right.
Did you do you caculation? I post one before, no one cares.
I-140 from $190 to $475
I-485 (including I-485, finger printting, I-131 AP,I-765 EAD) $1010 for
adult with complementary AP and EAD every year!
One people: I-140+I-485= $1485.
2 people, one 140: 475+1010*2=$2495.
For current fee schedule:
325 (I-485)+ 70 FP + 170 (EAD) + 180 (AP)= $745
I140+485
One people: $745+190=$935 (increase 1485-935=550)
two people: 2*745+190=$1680 (increase 2495-1680=815)
when you wait for 1 year,
p***e
发帖数: 29053
42
来自主题: EB23版 - quick math about dymu's data
ok, let us assume the best case:
all 08 PD submitted their 485 before Feb
Total 485 submission: 52k
Eb2row and Eb1 monthly use caculation
we have 30k SO from eb2 ROW and eb1
So they used 80k-30k=50k for 12 months
50k/12= 4.2k per month for Eb1 and EB2row, 2 months is 8.4k
therefore, EB2IC before 2009 submitted in Dec and Jan has 52k-8.4k=43k
It should be more than 43k since not all NOV submitted 485 got approved.
assume we have 25k SO for EB2IC this year, our own 8k supply. total supply
is 32k. ... 阅读全帖
p***e
发帖数: 29053
43
来自主题: EB23版 - updated analysis on 485 data
ok, let us assume the best case:
1. all 08 PD submitted their 485 before Feb
2. Total 485 submission: 52k from dymu
Eb2row and Eb1 monthly use caculation:
we have 30k SO from eb2 ROW and eb1: history data
So they used 80k-30k=50k for 12 months
50k/12= 4.2k per month for Eb1 and EB2row, 2 months is 8.4k
therefore, EB2IC before 2009 submitted in Dec and Jan has 52k-8.4k=43k
The number maybe more than 43k since not all NOV submitted 485 got approved.
assume we have 25k SO for EB2IC this year, plus ... 阅读全帖
e***y
发帖数: 1198
44
新国际:【新加坡外交部澄清李显龙讲话】针对有中国媒体刊登的《李显龙:中国或得
到钓鱼岛但会输掉世界地位》一文,新加坡外交部发言人23日回应说,该文完全“歪曲
、误报了李显龙在日本所说的话”,“内容不准确、误导”、“题目耸人听闻”。发言
人称,这种“不职业的报道”于两国关系无益。
编者注:
李显龙日前在日本回答提问时说“China will caculate that any gains from a non-
peaceful approach to territorial disputes will have to be weighed against
broader implications for its repuation and standing in the world.”
S****e
发帖数: 1063
45
来自主题: Chicago版 - CTU on strike
You need to read the WHOLE STORY!!!! CTU isn't just striking for money, more
importantly they're striking for students' learning environment, can you
believe that some schools don't have library? some schools don't have music
class?!!!! and CPS did not use a right caculation for 16% raise btw...
s***o
发帖数: 1189
46

oh, maybe i misunderstood the caculation.
I just can't make a 789 out of 1978.7.17.
m*****n
发帖数: 204
47
来自主题: NewYork版 - 问个纽约州税的问题 (转载)
If you both file as non-residents to NY:
1. AGI 填两人的收入
2. Calculate nominal NY tax T based on AGI
3. Caculate ratio R = NY source income / AGI
4. Tax due to NY is T * R
5. To the other state, check its own rules. If you have to calculate tax based on combined income, usually you may
claim a credit for tax paid to NY.
If you both file as residents of NY, do the reverse.
If one of you file as NY resident and one as non-resident of NY, it is still
the same concept.
p******s
发帖数: 2552
48
来自主题: Pittsburgh版 - 长途奔袭 2012 Outback购车记 (转载)
【 以下文字转载自 Automobile 讨论区 】
发信人: pandarus (), 信区: Automobile
标 题: 长途奔袭 2012 Outback购车记
发信站: BBS 未名空间站 (Fri Feb 3 13:08:15 2012, 美东)
这星期二入手的新车 2.5i premium cvt+all weather package+moonroof package
MSRP: $28,515
Invoice: $26,683
My price: $25,195 0.9% APR 36 months 在Chicago入手
旧车trade in给了dealer $2,350 autotrade估价 $2,760 考虑到车况 比较满意
去年年底的时候打算换新车,原来的旧车总是每年会冒出些问题来。现在住在Pittsburgh,山多路窄,遇上个下雪天路就滑。就想入个AWD的车,也考虑过forester,喜欢它的大天窗,但内饰有点寒碜,就pass了。
下面就把自己的心得介绍一下,就当是献丑了。我觉得写下来也可以加深下自己的印象,以后如果有朋友来问我 我也可以从容得想... 阅读全帖
x***m
发帖数: 1733
49
see my caculation, case one, your month payment in 5 year fix now can jump
to $3300, from current 30 years of $2700, in this case, after 5years in
worst case.
m*********t
发帖数: 1250
50
来自主题: SanFrancisco版 - 多少钱才能买房子
你这个算法虽然没太大出入,但是,你也要算算租房的帐来对比。网上有些Buy vs. Re
nt caculator可以参照。
如果小两口,租湾区两室一厅的房子稍微环境好点的APT,一个月租金就$3000,贷款买
个80万的房子,PITI也就$4000出头,还可以tax reduction。如果再加上小孩和父母过
来,不够住,又实在不方便,成天担心吵着邻居。如果不幸想我目前住的小区没有rent
al control,这两年轻松每年涨>10%,而且还要求签14个月甚至16个月的超长Lease Ag
reement。
而买房,如果你真失业了,房子也可以卖,你再去租。况且,如果你遵循基本的理财原
则,留足了3-6 month Emergency Fund,其实是有一定的失业风险承受力的。因此,我
的确不主张太撑去买豪宅,但是买个比APT稍微升级一点的house/TH,是比较理智的选择


30
首页 上页 1 2 3 4 下页 末页 (共4页)