Redian新闻
>
第一张照片里的和后面3张照片里的是同一个人吗?
avatar
第一张照片里的和后面3张照片里的是同一个人吗?# Joke - 肚皮舞运动
y*n
1
Given an file which consists thousands of lines. each line consists of a
string and several integers.
design an algorithm which take input of several integers and print out the
string of the line that have most matches.
input file
----------
aa 3 4 10 2
bb 9 14 15 21 3
cc 12 1024 200 3 9 4
----------
examples:
input: 3 4 10
output: aa
input: 12 3 4
output: cc
input: 3 9
output: bb
input: 3 9
output: cc
input: 3 4 12
output: cc
Thanks!
avatar
z*n
2
RT
avatar
c*2
3
第一张照片里,这个mm在照片外面的部分,是一丝不挂的吧?
好想看看那部分哟。
avatar
l*8
4
build a hash map:
key is the integer
value is list, which indicates which lines contain this integer.
scan the file and construct the hashmap.
when matching the input integers
create a BST to store the number of lines and how many matches it has.

【在 y******n 的大作中提到】
: Given an file which consists thousands of lines. each line consists of a
: string and several integers.
: design an algorithm which take input of several integers and print out the
: string of the line that have most matches.
: input file
: ----------
: aa 3 4 10 2
: bb 9 14 15 21 3
: cc 12 1024 200 3 9 4
: ----------

avatar
A*8
5
同问

【在 z****n 的大作中提到】
: RT
avatar
j*a
6
很二张很漂亮

【在 c*********2 的大作中提到】
: 第一张照片里,这个mm在照片外面的部分,是一丝不挂的吧?
: 好想看看那部分哟。

avatar
m*n
7
这不就是two sigma的原题么。我自认为都作对了,他都不理我了。
avatar
j*g
9
感觉脸型不一样
avatar
l*8
10
How did you answer the question?

【在 m***n 的大作中提到】
: 这不就是two sigma的原题么。我自认为都作对了,他都不理我了。
avatar
r*e
12
很可疑

【在 c*********2 的大作中提到】
: 第一张照片里,这个mm在照片外面的部分,是一丝不挂的吧?
: 好想看看那部分哟。

avatar
l*8
13
what kind of company two sigma is?

【在 m***n 的大作中提到】
: 这不就是two sigma的原题么。我自认为都作对了,他都不理我了。
avatar
y*n
15
so every time when doing a match, a BST is created? if that has to be the
way, how about creating a max-heap?
can we not creating BST frequently? I am looking for something that is more
efficient in run-time! creating BST in run time is memory-consuming and time
-consuming given large # of data sets.
thanks!
avatar
t*3
16
Top-load便宜很多。Sears Kenmore $279.00-$399.99 each.
avatar
l*8
17
Maybe we can only create the BST once. And we clear the BST every time
before matching a new group of integers.

more
time

【在 y******n 的大作中提到】
: so every time when doing a match, a BST is created? if that has to be the
: way, how about creating a max-heap?
: can we not creating BST frequently? I am looking for something that is more
: efficient in run-time! creating BST in run time is memory-consuming and time
: -consuming given large # of data sets.
: thanks!

avatar
p*5
18
为什么topload 便宜很多?老式的吧?
那种中间一根柱子的topload确实很便宜

【在 t***3 的大作中提到】
: Top-load便宜很多。Sears Kenmore $279.00-$399.99 each.
avatar
t*3
19
就是那种。

【在 p**5 的大作中提到】
: 为什么topload 便宜很多?老式的吧?
: 那种中间一根柱子的topload确实很便宜

avatar
b*r
20
hope so

【在 p**5 的大作中提到】
: shopper10% cashback is okay with 10% coupon?
avatar
b*r
21
that's what I'm trying to do. will go to store tomorrow.

【在 p**5 的大作中提到】
: can you price match the washer (bestbuy is selling $749)
avatar
t*z
22
用lowes的10%coupon然后用lowes信用卡的5% off也可以对么?
avatar
p*5
23
update:
went to the store tonight, they could price match, to 749, but no more 10%
mover coupon;
they do not have it in store, so no 10% price match policy.
I guess this 4.3 cu one is pretty good, but did not check review.

【在 p**5 的大作中提到】
: can you price match the washer (bestbuy is selling $749)
avatar
p*5
24
no in store; can try online.
Since no 10% after price match, I am going to try shopdiscover with bestbuy.
(if I decide to go with this one)

【在 t***z 的大作中提到】
: 用lowes的10%coupon然后用lowes信用卡的5% off也可以对么?
avatar
s*e
26
$580哪儿有啊?

【在 s*********n 的大作中提到】
: 这款怎么样, Samsung 4.3 cu. ft. Front-Load Washer, White (Model WF511)
: ENERGY STAR®, $580 on BF, 和BB那个520比有什么区别, 为啥都没人提这款呢,
: 看上去很不错又便宜啊
: http://www.sears.com/shc/s/p_10153_12605_02646912000P?prdNo=2&b

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