OR subset MEX

Правка en1, от lee5, 2021-12-03 14:36:10

Can someone help me with this problem? Given an array of integers. Find the smallest positive integer which cannot be formed by performing bitwise OR on all the elements of a chosen subset. I don't know the range of n(size of the array), but what can be the most optimized approach?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский lee5 2021-12-03 14:36:10 298 Initial revision (published)