We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cb236 commit a78911bCopy full SHA for a78911b
000_temp/63-fall-2018/035-hash-bucket/main.go
@@ -25,7 +25,6 @@ func main() {
25
for scanner.Scan() {
26
fmt.Print(scanner.Text(), " - ")
27
n := hashBucket(scanner.Text())
28
- fmt.Println(buckets[n])
29
buckets[n]++
30
}
31
fmt.Println(buckets[65:123])
@@ -36,5 +35,7 @@ func main() {
36
35
37
38
func hashBucket(word string) int {
+ fmt.Print(word[0], " ---- ")
39
+ fmt.Printf("%#U\n", word[0])
40
return int(word[0])
41
0 commit comments