(m map[string]int)
| 44 | } |
| 45 | |
| 46 | func mapValuesLessThanOne(m map[string]int) bool { |
| 47 | for _, v := range m { |
| 48 | if v > 0 { |
| 49 | return false |
| 50 | } |
| 51 | } |
| 52 | return true |
| 53 | } |
| 54 | |
| 55 | // Initial solution. Pretty close, but overly complicated |
| 56 | // and assumed that duplicates of t were not allowed, meaning |