(intervals [][]int)
| 72 | } |
| 73 | |
| 74 | func overlaps(intervals [][]int) bool { |
| 75 | for j := 1; j < len(intervals); j++ { |
| 76 | if intervals[j-1][1] > intervals[j][0] { |
| 77 | return true |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | return false |
| 82 | } |
| 83 | |
| 84 | // Initial solution, which failed to recognize that the removal |
| 85 | // order isn't necessarily a part of the start sorted sequence. |
no outgoing calls
no test coverage detected