(a SlotRange, b SlotRange)
| 248 | } |
| 249 | |
| 250 | func MergeSlotRanges(a SlotRange, b SlotRange) SlotRange { |
| 251 | return SlotRange{ |
| 252 | Start: min(a.Start, b.Start), |
| 253 | Stop: max(a.Stop, b.Stop), |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | // Implemented following leetcode solution: |
| 258 | // https://leetcode.com/problems/merge-intervals/solutions/1805268/go-clean-code-with-explanation-and-visual-10ms-100 |
no outgoing calls
no test coverage detected