Skip to content

Commit a78911b

Browse files
committed
you're doing great
1 parent 26cb236 commit a78911b

File tree

1 file changed

+2
-1
lines changed
  • 000_temp/63-fall-2018/035-hash-bucket

1 file changed

+2
-1
lines changed

000_temp/63-fall-2018/035-hash-bucket/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func main() {
2525
for scanner.Scan() {
2626
fmt.Print(scanner.Text(), " - ")
2727
n := hashBucket(scanner.Text())
28-
fmt.Println(buckets[n])
2928
buckets[n]++
3029
}
3130
fmt.Println(buckets[65:123])
@@ -36,5 +35,7 @@ func main() {
3635
}
3736

3837
func hashBucket(word string) int {
38+
fmt.Print(word[0], " ---- ")
39+
fmt.Printf("%#U\n", word[0])
3940
return int(word[0])
4041
}

0 commit comments

Comments
 (0)