Pergunta de entrevista da empresa Digimarc

How to round up an integer division

Respostas da entrevista

Sigiloso

24 de set. de 2016

Add half of the numerator to itself before dividing: (a + a/2) / b

Sigiloso

22 de fev. de 2018

I don't think that (a + a/2)/b is correct. I think it would be (a + 1)/b