由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问道看到的面试题
相关主题
问一道面试题问个常见算法题的变形
请教一道面试题问几道面试题
google interview question问个java hashcode的题
感觉这是一道经典题Amazon 电面
问个程序题10个包子帮忙程序找错,标题要长……………………
一个算法题目Facebook电话面试总结
请教一个题 string similarity这道ood怎么做-unique car
[合集] 微软面试题一道hashcode面试题
相关话题的讨论汇总
话题: string话题: input话题: geman话题: 256话题: output
进入JobHunting版参与讨论
1 (共1页)
G***n
发帖数: 877
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.
想了很久觉得好像不可能,不知道是不是我太菜鸟了。还是题目有问题。
v*****u
发帖数: 1796
2
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.
: 想了很久觉得好像不可能,不知道是不是我太菜鸟了。还是题目有问题。

e***l
发帖数: 710
3
不是考精确算法,想想MD5...
另外2^256这个数字已经没有实际意义了
n********y
发帖数: 66
4
这不可能。
如果真能做到,研究压缩算法的都能回家带孩子去了。。
such that in most cases, two .....
这个,利用加密解密常用的 modulo arithmetic 应该靠谱一些。。
G***n
发帖数: 877
5
sorry, sorry,I think the input is any string with the size at 10KB.
g***s
发帖数: 3811
6
i think the interviewer was asking you to write a hashCode function for
string
【 在 Geman (Geman) 的大作中提到: 】
1 (共1页)
进入JobHunting版参与讨论
相关主题
hashcode面试题问个程序题10个包子
问一个Anagram的参考程序一个算法题目
Google onsite面试题全都答出来,能录取么?请教一个题 string similarity
常见的string hash function[合集] 微软面试题一道
问一道面试题问个常见算法题的变形
请教一道面试题问几道面试题
google interview question问个java hashcode的题
感觉这是一道经典题Amazon 电面
相关话题的讨论汇总
话题: string话题: input话题: geman话题: 256话题: output