项目作者: mohitagarwal124

项目描述 :
To find a string of characters that contains only letters from 'acdegilmnoprstuw'.
高级语言: JavaScript
项目地址: git://github.com/mohitagarwal124/ReverseHash.git
创建时间: 2017-03-26T20:23:37Z
项目社区:https://github.com/mohitagarwal124/ReverseHash

开源协议:

下载


ReverseHash

To find a string of characters that contains only letters from ‘acdegilmnoprstuw’.

Considering the hash is defined by following pseudo code:-

Int64 hash (String s) {
Int64 h = 7
String letters = “acdegilmnoprstuw”
for(Int32 i = 0; i < s.length; i++) {
h = (h * 37 + letters.indexOf(s[i]))
}
return h
}