Example 1
- Input
- target = 12, position = [10,8,0,5,3], speed = [2,4,1,1,3]
- Output
- 3
Positions 10 and 8 meet at target 12 and arrive at time 1. Positions 5 and 3 meet at mile 6; their fleet then travels at speed 1 and arrives at time 7. Position 0 travels alone and arrives at time 12. These three groups give 3 fleets.