注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
求加米!!!
求加米!!!
求加米!!!
OA 网上都查得到
店面 是先和HM call 没有coding
onsite 三轮
两轮coding
一轮和同一个HM manager
题都在下面notes里
note很多来自于地里 谢谢前辈们
Why Weathfront
EOC上投了wealthfront这家公司Backend developer, develop financial service platform的,和hr约面试就约了两个礼拜,效率太低啦,要不是看着在湾区,我真就不想面啦。
开始让写到leetcode pow(x,n)那道题,轻松写完了之后,感觉她不太懂代码,反复让我说这个例子,如何实现的,还选了好几个例子,让我一遍遍说。
public static double power(double x, int n) {
//returns x^n, e.g. power(2.0, 3) -> 8
if ( x == 0.0 && n == 0) return null;
int p ;
if ( n < 0 ) {
p = -n;
} else
{
p = n;
}
double ret = 1.0;
while(p > 0) {
if( p%2 == 1) {
ret * = x;//ret = 3 , 3, 243
}
p >> = 1;//p= 2, 1, 0
x* = x;//x=9 , 81, 81*81
}
if (n < 0 ) {
return 1 / ret;
}
return ret;
}
pow(3,5)
之后给我这个类,我以为实现代码呢,结果让我说如何测试divide这个函数,我想了两种
divide by 0
//overflow
//
她提示了我一种,我感觉招我就是做测试的呢。。。。顿时没什么兴趣
public class Rational {
public Rational(int numerator, int denominator) { ... }
@Override
public boolean equals(Object x) { ... }
@Override
public int hashValue() { ... }
dicate等等. 总之虽然写出来了, 但懵逼的时候多.毕竟只会用iterator. 没仔细研究过. 挂了也不亏_(:з」∠)_
第二轮: 一道house robber 3, 一道是另一个帖子里写的simple map那道题.
coding style和code review要注意什么
1. What happen after you tapping the app icon until the first screen shows up
2. Given a list of integer and a target number, output all the possible two numbers A and B where A+B = targetEx:
[3, 1, 2, 300, 1000, 400,400,200, 200, 750, -150, 300]
600
(400, 200)
(400, 200)
(750, -150)
(300, 300)
MagicMap 老题
坑爹 divisor问题, 就是如何把cookie distributed到盒子里,问题是要写各种assert 然后pass 才行
|