Redian新闻
>
这个周五 BestBuy 的 Lenovo Yoga 会出货,并且有比较大的折扣
avatar
这个周五 BestBuy 的 Lenovo Yoga 会出货,并且有比较大的折扣# PDA - 掌中宝
r*g
1
直接从guangyi的总结里面的一个链接找的,但是链接没有答案,谢谢了
10. F(a, b) -> true or false means that person a knows person b. But it’
s not commutative, because person a can know person b, but b may not know a.
Say, you throw a party, you knows a number of people, invite them, then each
of them knows a bunch of people (those sets of people can intersect), so on
and so forth.
Now there is a celebrity comes in, everyone in the party knows him, but he
knows no one.
Write an algorithm effectively find out who the celebrity is.
这个题不是tree,不知道怎么找比较快。
13. Master mind guess.
Say a random 6-digit number is generated and hidden secretly.
Then there is a function: int Tell(int n); where the n is any 6-digit number
, and the function Tell returns how many of the digits are correct and in
the right position.
For example, if the secret is “123456”, and Tell(“523499”) -> 3
Now write an algorithm such that you can call Tell to figure out what is the
secret number efficiently.
这个题难道就是对每次变动每一位?这样岂不是开销比较大。
34. string/pattern matching. pattern can contain a-z and special chars
like "." and "*"
"." means matching any single char
"*" means matching zero or more chars of any kind.
string can contain a-z and "." "*". Note "." and "*" in string are just
regular chars, no special meanings.
这道题好像google出了很多次了,就是基于这样的字符怎么做匹配,谁能帮我考考古,
貌似这个版讨论过的。
谢谢了。
avatar
N*D
2
在店子里试了下键盘,仿佛有点20年前老IBM的感觉,不知道$1600这个价格怎么样?
costco可以保修4年。
Processor & Memory:
Intel® Core™ i7-8550U Processor 1.8GHz
16GB LPDDR3 (2-DIMM) 2133MHz RAM
Operating System:
Microsoft® Windows 10 Home (64 bit)
Drives:
512GB M.2 NVMe Solid State Drive
No Optical Drive
Graphics & Video:
14" Anti-glare LED Backlit IPS FHD (1920 x 1080) Display
Intel Integrated 620 Graphics
Communications:
802.11 Wireless-AC + Bluetooth® 4.1
Integrated dual Microphone Array
Audio:
Dolby Premium Audio Processing
Keyboard:
Backlit English Keyboard
Ports & Slots:
2x USB 3.0
2x USB Type C Thunderbolt
1x HDMI
1x Media Card Reader
1x Combination Audio Jack
1x Ethernet (Via Dongle)
Battery:
3 Cell 57Wh (Up to 15-hour total) Battery
Additional Information:
Dimensions: 12.74" x 8.6" x .6"
Approximate Weight: 2.49lbs
avatar
l*o
3
据可靠消息,包括13寸的和11寸两种,但是不确定有没有橘色。
avatar
l*a
4
pick up a,b, if a know b ,then a is not the celebrity
eachtime u can remove one from those people.
when there is only one,check whether he know no one and everyone know him
O(n)

a.
each
on

【在 r*******g 的大作中提到】
: 直接从guangyi的总结里面的一个链接找的,但是链接没有答案,谢谢了
: 10. F(a, b) -> true or false means that person a knows person b. But it’
: s not commutative, because person a can know person b, but b may not know a.
: Say, you throw a party, you knows a number of people, invite them, then each
: of them knows a bunch of people (those sets of people can intersect), so on
: and so forth.
: Now there is a celebrity comes in, everyone in the party knows him, but he
: knows no one.
: Write an algorithm effectively find out who the celebrity is.
: 这个题不是tree,不知道怎么找比较快。

avatar
s*z
5
集显卖1600?
avatar
T*n
6
真的假的?

【在 l*****o 的大作中提到】
: 据可靠消息,包括13寸的和11寸两种,但是不确定有没有橘色。
avatar
g*i
7
第一题是celebrity问题,面经了出现过几次了,楼上的就是标准解法.
第二题google下wiki有解释算法,当时我没仔细看.
第三题你google下wildcard match就可以了,递归写法很容易,网上有非递归写法,我没
记住.
avatar
l*3
8
昨天去店里摸了摸 还是dell xps 13性感

【在 N**D 的大作中提到】
: 在店子里试了下键盘,仿佛有点20年前老IBM的感觉,不知道$1600这个价格怎么样?
: costco可以保修4年。
: Processor & Memory:
: Intel® Core™ i7-8550U Processor 1.8GHz
: 16GB LPDDR3 (2-DIMM) 2133MHz RAM
: Operating System:
: Microsoft® Windows 10 Home (64 bit)
: Drives:
: 512GB M.2 NVMe Solid State Drive
: No Optical Drive

avatar
l*o
9
至少湾区附近都会出货,这个折扣不在BestBuy的广告里面。

【在 T****n 的大作中提到】
: 真的假的?
avatar
l*a
10
我的做法是根据输入pattern生成一个状态转换表
比方说 a*b
initial state s[0],
f(s[0],a)=s[1]
f(s[1],a...)=s[1]
f(s[1],b)=s[2]
then just judge whether your input can go from s[0] to s[2]
use can use matrix or map to store the 状态转换表

a.
each
on

【在 r*******g 的大作中提到】
: 直接从guangyi的总结里面的一个链接找的,但是链接没有答案,谢谢了
: 10. F(a, b) -> true or false means that person a knows person b. But it’
: s not commutative, because person a can know person b, but b may not know a.
: Say, you throw a party, you knows a number of people, invite them, then each
: of them knows a bunch of people (those sets of people can intersect), so on
: and so forth.
: Now there is a celebrity comes in, everyone in the party knows him, but he
: knows no one.
: Write an algorithm effectively find out who the celebrity is.
: 这个题不是tree,不知道怎么找比较快。

avatar
m*o
11
这个很不错啊,我回来去看看。
小屏幕用FHD是最合适的,FHD足够好了,UHD除了多费电没什么鸟用。
笔记本重要的是屏幕和键盘,这个需要体验。CPU,RAM,SSD看spec就行了。
avatar
T*n
12
又是BB的hidden item?
avatar
r*g
13
这个题确实和前面一道题思路一样,O(N)就行了,谢谢了

【在 l*****a 的大作中提到】
: pick up a,b, if a know b ,then a is not the celebrity
: eachtime u can remove one from those people.
: when there is only one,check whether he know no one and everyone know him
: O(n)
:
: a.
: each
: on

avatar
t*e
14
avatar
A*Z
15
BestBuy内部的消息?

【在 l*****o 的大作中提到】
: 据可靠消息,包括13寸的和11寸两种,但是不确定有没有橘色。
avatar
r*g
16
找到第三题了,thanks
第二题貌似还要两个版本,一个版本是说位置不同就不count,一个版本说位置不同只
要重复出现了就count。

【在 g*****i 的大作中提到】
: 第一题是celebrity问题,面经了出现过几次了,楼上的就是标准解法.
: 第二题google下wiki有解释算法,当时我没仔细看.
: 第三题你google下wildcard match就可以了,递归写法很容易,网上有非递归写法,我没
: 记住.

avatar
d*z
17
Intel Integrated 620 Graphics. ha ha
avatar
W*4
18
刚买了
no deal at all

【在 A****Z 的大作中提到】
: BestBuy内部的消息?
avatar
f*t
19
小时候都在文曲星上玩过猜数字游戏吧,就是给出一个随机的4位数,你输入一个数,
程序会告诉你哪些完全正确,哪些数字虽然出现了但位置不对。。。
虽然都会玩,但要给个算法还是一时想不出来

【在 r*******g 的大作中提到】
: 找到第三题了,thanks
: 第二题貌似还要两个版本,一个版本是说位置不同就不count,一个版本说位置不同只
: 要重复出现了就count。

avatar
l*s
20
键盘手感太差

【在 l******3 的大作中提到】
: 昨天去店里摸了摸 还是dell xps 13性感
avatar
h*t
21
楼主猜歪了,只有twist....

【在 l*****o 的大作中提到】
: 据可靠消息,包括13寸的和11寸两种,但是不确定有没有橘色。
avatar
d*u
22
Directed graph.
find a node without egress edge, but has all the ingress edge from
all the other nodes.

【在 l*****a 的大作中提到】
: pick up a,b, if a know b ,then a is not the celebrity
: eachtime u can remove one from those people.
: when there is only one,check whether he know no one and everyone know him
: O(n)
:
: a.
: each
: on

avatar
M*l
23
这个重量级的轻薄本没有能上独显的。

【在 s*******z 的大作中提到】
: 集显卖1600?
avatar
M*4
24
怎么没下文了?

【在 l*****o 的大作中提到】
: 据可靠消息,包括13寸的和11寸两种,但是不确定有没有橘色。
avatar
d*u
25
Directed graph.
find a node without egress edge, but has all the ingress edge from
all the other nodes.

【在 l*****a 的大作中提到】
: pick up a,b, if a know b ,then a is not the celebrity
: eachtime u can remove one from those people.
: when there is only one,check whether he know no one and everyone know him
: O(n)
:
: a.
: each
: on

avatar
d*u
26
Directed graph.
find a node without egress edge, but has all the ingress edge from
all the other nodes.

【在 l*****a 的大作中提到】
: pick up a,b, if a know b ,then a is not the celebrity
: eachtime u can remove one from those people.
: when there is only one,check whether he know no one and everyone know him
: O(n)
:
: a.
: each
: on

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