Pergunta de entrevista da empresa Cisco

(forgot the exact question) but it was to write code that did bitwise operations. and then to optimize it

Resposta da entrevista

Sigiloso

14 de ago. de 2010

for optimizing the code, before performing the math, check if one value is 0, and return then answer if it is. This is an optimization because it takes advantage of the zero flag of the ALU. (again, forgot the question, so don't quite remember the answer either)