Let's express this optimization in pseudocode

2 years ago
10.1K

It even sounds faster, and it surely is.Let's express this optimization in pseudocode.Let n equal zero.For each pair of people in room,set n = n + 2.Pretty simple change, right?Rather than count people one at a time,we instead count them two at a time.This algorithm's thus twice as fast as the last.But is it correct?

Loading comments...