Computer Science, asked by pmaheshpm21, 2 months ago

You are general of an army and have N snipers of the number line each aniper has a fixed position x and skill level s. You have to go into battle so you have you choose some snipers but the sniper are not very well trained and hence they don't want any random set of snipers. If you choose a set of snipers. You have to ensure that for any snipers i and j in set. The difference in their positions is more than some of their skill levels. That is |Xi-Xj|>Si+Sj where i=j Nx both i, j belong to chosen set As general of army you have to determine max number of snipers you can select if you choose them optimally

Answers

Answered by mmaniboss33
0

Answer:

  • mansnxhdybdhddhhdhdhddhbb hight
Similar questions