Infosys SP OA problem (Over)

Revision en1, by CPharderthanDarkSouls, 2022-07-29 11:49:49

You are given an array , can perform two operations -if the size is greater than 1 choose two distinct elements and remove both of them -or remove a single element N — 10^5 , 1 <= a[i] <= 10^9 Find the minimum operations to make array empty.

What will be the approach of this ?

Tags #online assessment

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English CPharderthanDarkSouls 2022-07-29 11:52:25 78
en1 English CPharderthanDarkSouls 2022-07-29 11:49:49 318 Initial revision (published)