Redian新闻
>
Security Motion Light用哪种好?
avatar
Security Motion Light用哪种好?# Living
D*0
1
网上投的,一开始是做online的两道题,一个是求树的Amplitude
In a binary tree T, a path P is a non-empty sequence of nodes of tree such
that, each consecutive node in the sequence is a subtree of its preceding
node. In the example tree, the sequences [9, 8, 2] and [5, 8, 12] are two
paths, while [12, 8, 2] is not. The amplitude of path P is the maximum
difference among values of nodes on path P. The amplitude of tree T is the
maximum amplitude of all paths in T. When the tree is empty, it contains no
path, and its amplitude is treated as 0.
For exmaple.
Input:
5
/
8 9
/ /
12 2 8 4
/ /
2 5
Output:
7
Explanation:
The paths [5, 8, 12] and [9, 8, 2] have the maximum amplitude 7.
另外一个就是写数据库的sql,不是很难,时间很够用。
然后是一轮电话面试,感觉是国人,就问了一个求一个由火材棍组成的square里总共有
多少个正方形,其中火材棍可以连续,或者不连续,例如
—— —— —— ——
| | | | |
—— —— ——
| | | |
—— —— —— ——
| | | | |
—— —— —— ——
剩余时间聊聊project和他自己介绍TA的相关情况
onsite飞到波士顿,一共四轮。
1 国人大哥,很亲切,上来直接中文,搞得挺惊讶的,问了一些java的知识,然后是买
卖股票1和3,然后说设计一个card game的数据结构,如何能快速比较胜负关系,我以
为是像香港赌片里那种规则,结果是让我按德州扑克设计,从来没玩过,简单说了一下
,大哥说换一个吧。就换设计一个online的table reservation系统,数据库如何设计
主要是,答的一般。
2 说英语的亚洲人,上来介绍阻力情况和他做的,后来问了写java相关的知识,然后问
了一个nary tree的LCA,每个节点都有father指针。一开始用一个set的做的,后来用
了两个相交linkedlist求交点的方法。
3 白人大叔,人很亲切,上来自我介绍,然后轮到我介绍自己,然后就问了一道题,给
一个函数,
alarm(boolean success, long timestamp, String requestName),意思是当一分钟之
内某个request的failure比例达到一定程度时fire alarm。先跟大叔讲了思路,大叔表
示赞同,然后开始撸,用了priorityqueue存Request(success,timestamp, name)的对
象,维护一个60秒的queue。问了时间复杂度,如何初始化的一些相关问题,不是很难
。最后大叔表示满意。
4 国人大叔,大boss,上来直接中文,很亲切,问了java相关问题,然后让写一段遍历
的代码,就是给你一个集合,让你返回符合输入的一个子集,输入是一个predicate和
一个type。后来问多线程下怎么办,怎么加锁,如何加cache。
总得过程很愉快,办公楼不错,里面很漂亮,没见到什么老印,国人不少。一周过后拿
到offer,感谢面试中国人的帮助。 105k base,50k RSU,有搬家费,但是没说,还有
就是12%的bonus,另外他家的福利挺好的。请问这个offer在波士顿地区如何,本人phd
,3年工作经验,不在波士顿,要relocate。感觉波士顿的房价很贵啊,跟湾区有一拼
呢。谢谢。
avatar
s*1
2
$7.99(原来价格$10..49的100tablet,Adults under 50
$9.99的pronutrients omega3 蓝色包装哪个 EPA/DHA Supplement
用的c(原来价格$11.99)有送礼物卡活动的时候贵.oupon是1月1号买的报纸上
$3 off any Centrum
$5 off pronutrients
TQ $5 off when buy two.
7.99+9.99-$3-$5-$5=$4.98Plus tax (OOP)
原来价格是10.49+11.99=22.48
要是有以前的哪个买2送5GC的好了,就可以免费了.
没有倒赚,但是要是正好需要的可以去屯些.
avatar
D*W
3
车库前面本来已经有左右各1个图1的那种灯了。想换成SecurityMotionLight。差不多
有下面图2图3两种。换成图3简单的多,但是是不是作为SecurityMotionLight效果不如
图2那种好?
图1
图2
图3
avatar
kc
4
波士顿房价这两年涨了不少,但是比加州还是低很多。而且TA在newton和needham,可以
稍微再往南一点买房子,房价就更便宜了。
波士顿IT行业整体比不上加州和西雅图,所以工资也低不少。

no

【在 D***0 的大作中提到】
: 网上投的,一开始是做online的两道题,一个是求树的Amplitude
: In a binary tree T, a path P is a non-empty sequence of nodes of tree such
: that, each consecutive node in the sequence is a subtree of its preceding
: node. In the example tree, the sequences [9, 8, 2] and [5, 8, 12] are two
: paths, while [12, 8, 2] is not. The amplitude of path P is the maximum
: difference among values of nodes on path P. The amplitude of tree T is the
: maximum amplitude of all paths in T. When the tree is empty, it contains no
: path, and its amplitude is treated as 0.
: For exmaple.
: Input:

avatar
r*h
5
谢谢!
avatar
D*W
6
如果换成图2的那种还需要左右各一个吗?
avatar
D*0
7
谢谢我爱罗,现在一家三口,小娃要上k了,南部的学区如何?

可以

【在 kc 的大作中提到】
: 波士顿房价这两年涨了不少,但是比加州还是低很多。而且TA在newton和needham,可以
: 稍微再往南一点买房子,房价就更便宜了。
: 波士顿IT行业整体比不上加州和西雅图,所以工资也低不少。
:
: no

avatar
m*n
8
太贵了,$2 一瓶我卖给你。
avatar
u*q
9
2最专业,最有效。不太好看。只需一个。
avatar
b*m
10
数火柴棍里的正方形,能详细说一下吗,什么是不连续或者连续
avatar
s*u
11
o(∩_∩)o...哈哈!!!
avatar
G*G
12
yes, but figures 2 and 3 not beautiful in your front yard.
I would like to change the light in the figure 1 to a security camera.
anyone agree with me?
how to change the light in the figure 1 to a camera?

【在 D**W 的大作中提到】
: 车库前面本来已经有左右各1个图1的那种灯了。想换成SecurityMotionLight。差不多
: 有下面图2图3两种。换成图3简单的多,但是是不是作为SecurityMotionLight效果不如
: 图2那种好?
: 图1
: 图2
: 图3

avatar
D*0
13
就是每一行每一列的火柴棍都可能不连续,可以在纸上画画就明白了

【在 b*****m 的大作中提到】
: 数火柴棍里的正方形,能详细说一下吗,什么是不连续或者连续
avatar
s*1
14
在说下店里的大嘴猴和羊毛开衫.
2件一共10刀.上次买的短袖子网购的paul frank准备退了.短袖的7.48刀坑爹啊.
我长袖的才5.21刀.
link:
http://www.target.com/p/Paul-Frank-Juniors-XOXO-Julius-Tee-Red/
请到clearance 70% 那里去买我买的是这个差不多但是黑色的TEE.
avatar
G*G
15
Motion light is for backyard, not for front yard.
In most houses' front yards, there are already street lights, aren't there?
It there are street lights, will the motion light work well?
If the motion light sensor is disconnected with alarm system,
how can it scare away the intruders?

【在 D**W 的大作中提到】
: 车库前面本来已经有左右各1个图1的那种灯了。想换成SecurityMotionLight。差不多
: 有下面图2图3两种。换成图3简单的多,但是是不是作为SecurityMotionLight效果不如
: 图2那种好?
: 图1
: 图2
: 图3

avatar
s*1
16
开衫,网上卖50% off $12.48
我给我妈选了一个黑色的.试了下,上身还不错.
http://www.target.com/p/Merona-Womens-Fair-Isle-Cardigan-Sweate
店里70%.7.48
Target上有coupon.TQ 3刀off.
TX们哪clearance里的衣服比网上买真便宜很多.我准备在打一张merona的coupon.注意coupon不能买配件和shoe好象只能买衣服的说.
有件衣服算下来才0.48,可惜因为是XS的我妈穿不下.
Enjoy!
avatar
D*W
17
图3可以装到图1里面,所以好看到也不是问题。只是它的亮度效果可能只是和本来的
图1差不多。到可能是自己回家的时候比较方便,也不用一直开着灯。
如果换成Camera的话我看就是只能利用那个电源了。

【在 G***G 的大作中提到】
: yes, but figures 2 and 3 not beautiful in your front yard.
: I would like to change the light in the figure 1 to a security camera.
: anyone agree with me?
: how to change the light in the figure 1 to a camera?

avatar
i*d
18
3 off coupon好像用不了,我看了我昨天收据只是在原价上减了3,最后clearance价格
没变,谁能确认一下?
avatar
j*u
19
呵呵
好的
谢谢

【在 s*******1 的大作中提到】
: 开衫,网上卖50% off $12.48
: 我给我妈选了一个黑色的.试了下,上身还不错.
: http://www.target.com/p/Merona-Womens-Fair-Isle-Cardigan-Sweate
: 店里70%.7.48
: Target上有coupon.TQ 3刀off.
: TX们哪clearance里的衣服比网上买真便宜很多.我准备在打一张merona的coupon.注意coupon不能买配件和shoe好象只能买衣服的说.
: 有件衣服算下来才0.48,可惜因为是XS的我妈穿不下.
: Enjoy!

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