1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
public static int hashCode(char[] s) { int hash = 0; for (int i = 0; i < s.length; i++) { hash = s[i] + ((hash << 5) - hash); } return hash; }
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
function hash(s) { var hash = 0; for (var i = 0; i < s.length; i++) { hash = s[i] + ((hash << 5) - hash); } return hash; }
1:
Cells(2, 5).Resize(ubound(vardata, 1) + 1, ubound(vardata, 2) + 1).Value = varData