Nslots. In each slot, there is a flower. The
Nflowers will bloom one by one in
Ndays. In each day, there will be
exactlyone flower blooming and it will be in the status of blooming since then.
flowersconsists of number from
N. Each number in the array represents the place where the flower will open in that day.
flowers[i] = xmeans that the unique flower that blooms at day
iwill be at position
xwill be in the range from
k, you need to output in which day there exists two flowers in the status of blooming, and also the number of flowers between them is
kand these flowers are not blooming.