|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияinit array and simple loop ! [code deleted] Edited by moderator 13.02.2007 20:47 I think it would be even better if you go through 2*i + 1 and not all the numbers when checking for the maximum.... logic: (all 2*i < 2*i + 1) and (all 2*i <= 2*i - 1 [i>0]) |
|
|