Redian新闻
>
MC或BestBuy的open box policy是啥样?
avatar
MC或BestBuy的open box policy是啥样?# Hardware - 计算机硬件
G*n
1
input: any string
output: 256 bit long int to represent that string,
such that no two different strings perform the
same output. For example, input "ab" and "ba" are
mapped into different long int.
想了很久觉得好像不可能,不知道是不是我太菜鸟了。还是题目有问题。
avatar
E*e
2
买新的,open了,退回去,收15%?
如果买本来就open box的呢?退回去还要再收15%么?
谢谢!
avatar
v*u
3
agree with you.
there are obviously more than 2^256 strings

【在 G***n 的大作中提到】
: input: any string
: output: 256 bit long int to represent that string,
: such that no two different strings perform the
: same output. For example, input "ab" and "ba" are
: mapped into different long int.
: 想了很久觉得好像不可能,不知道是不是我太菜鸟了。还是题目有问题。

avatar
e*l
4
不是考精确算法,想想MD5...
另外2^256这个数字已经没有实际意义了
avatar
n*y
5
这不可能。
如果真能做到,研究压缩算法的都能回家带孩子去了。。
such that in most cases, two .....
这个,利用加密解密常用的 modulo arithmetic 应该靠谱一些。。
avatar
G*n
6
sorry, sorry,I think the input is any string with the size at 10KB.
avatar
g*s
7
i think the interviewer was asking you to write a hashCode function for
string
【 在 Geman (Geman) 的大作中提到: 】
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。