IT討論區(82) IT狗對住新老細:肅立起敬頌讚祂!!表示尊敬跪拜祂!!

1001 回覆
2 Like 0 Dislike
2020-05-15 12:49:01
精彩
我係用reduce to (n-1)Cr 或者 d(1+x)^n呢兩個方法 無諗過你呢個方法

後面個insight更方便 number of comma=number of all word appearance - number of subset
2020-05-15 12:49:40
組合數學每每都比到我驚喜
2020-05-15 12:55:42
去到高收入何以40幾percent但頭果截有免稅同低啲稅率。

80K港幣一個月,一年960K HKD ,約124K USD一年,要扣完稅有咁多,稅前185K USD一年:

假設單身,響矽谷San Jose,CA,一年185000 USD

https://smartasset.com/taxes/income-taxes#e5DzaW6PwZ

Your Income Taxes Breakdown
Tax Type Marginal Tax Rate Effective Tax Rate 2019 Taxes*
Federal 32.00% 19.79% $36,613
FICA 1.45% 5.90% $10,922
State 9.30% 7.54% $13,951
Local 0.00% 0.00% $0
Total Income Taxes 33.24% $61,486
Income After Taxes $123,514
Retirement Contributions $0
Take-Home Pay $123,514
* These are the taxes owed for the 2019 - 2020 filing season.
2020-05-15 12:58:00
300K應該係total package唔係淨salary係加埋bonus同股票。FAANG有人嘅齋人工有300K USD(稅前)但係好少,應該少過10%要好高級先得。
2020-05-15 12:58:50
Reduce to (n-1)Cr:
Sum r*nCr
= Sum n!/r!(n-r)! * r
= Sum n!/(r-1)!(n-r)!
= Sum n* (n-1)!/(r-1)!(n-1-r+1)!
= Sum n* (n-1)C(r-1)

d(1+x)^n:
(1+x)^n=Sum nCr*x^r
d(1+x)^n = Sum nCr*d(x^r)
n(1+x)^(n-1) = Sum nCr*r*x^(r-1)
2020-05-15 12:59:04
可能principle engineer 既有既
2020-05-15 13:01:42
我好驚,其實呢堆野係20幾30年前讀中學學,而家仲記得,真係俾亞Sir洗咗腦。
2020-05-15 13:03:26
但咁嘅話,香港撈到十萬易過FAANG撈到十萬喎
2020-05-15 13:03:40
覆錯 Thread 添
2020-05-15 13:03:44
300K total package就好容易,senior engineer (10年經驗)嘅應該都有。
2020-05-15 13:04:07
覆錯樓呀牙羊
2020-05-15 13:04:32
問題係senior engineer 可能都係得20%
2020-05-15 13:05:05
系牙 唔駛衝出嚟串我下話
2020-05-15 13:05:07
基本組合數學啫 返工陣中用
2020-05-15 13:05:40
唔係串 搵個話題hi下你啫
2020-05-15 13:05:56
呢條玩到爛,好多人會上網睇model answer。不了
2020-05-15 13:07:30
我仲有大把呢類可以naive又可以數學既貨
2020-05-15 13:09:26
仲要hi我添 我hi返你牙!
2020-05-15 13:12:03
We consider the sequence of numbers where a number is followed by the same number plus the sum of its digits. For example, 34 is followed by 41 (as 41=34+(3+4)) is itself followed by 46 (46 = 41 + (4+1)) The sequence would be 34 41 46 56 67 ....

Two sequences which start from different numbers may join at a given point, for example, the sequence starting from 471 and the sequence starting from 480 shares the number 519

Implement the function which takes the starting points of two sequences and then returns the joining point of these sequences.

The constraints given in the problem are the following:

The given sequences always join
0 < join point < 20000000
0 < s, s2 < 20000000

function computeJoinPoint(s1, s2) {
  // do your things here
  return {your answer}
}

最近做過份online test 有呢題
google 都有人問過
2020-05-15 13:14:49
矽谷較好嘅公司(唔一定係FAANG)fresh grad係12萬一年,FAANG或差不多嘅公司都會有bonus同股票。fresh grad total package 有16-18萬其實唔難,扣完稅低過80K港幣啲啲。

如果fresh grad扣完稅低過80K港幣一個月少少,咁10年以上嘅senior嘅package要幾多先請到人?唔係講principal engineer,只係10年經驗做到野嘅senior,大公司裡面大把。

美國其他tech hub例如Seattle,Austin人工低過矽谷但唔會低一大截。

利申:響矽谷十九幾年,響大IT公司返工。
2020-05-15 13:15:13
但限你十五分鐘 解完再 Implement 埋
2020-05-15 13:17:40
差唔多
佢用 codeingame https://www.codingame.com/
如果係一睇就suppose你識答的問題, 限時 20秒 至 分半鐘
coding (program 改) 就 10~30分鐘
2020-05-15 13:18:00
簡單
有題類似既
function median(a,b,c){
    return ________________;
}
2020-05-15 13:18:36
對吾字囉
2020-05-15 13:18:51
啲稅前稅後睇到我好迷

想請教吓 Tech大公司既然 FG 70K HKD 咁 10 yrs exp 大概幾多?200K?400K?

當然講緊落袋(未計生活費)
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞