lc1558

By | August 23, 2020
Share the joy
  •  
  •  
  •  
  •  
  •  
  •  

There are actually 2 types of OPs. One is to make all digit multiplying by 2, this can be shared by all numbers together. Another is adding one. This can’t be shared. So result would be count how many one digit, plus the highest bit count.

op12