You are viewing a single comment's thread. Return to all comments →
php solution:
function countApplesAndOranges(t, b, oranges) { orange_count = 0;
foreach (`$apples as $`key => $value) { `$sum = $`a + $value; if( `$sum >= $`s && `$sum <= $`t ){ $apple_count++; } } foreach (`$oranges as $`key => $value) { `$sum = $`b + $value; if( `$sum >= $`s && `$sum <= $`t ){ $orange_count++; } } echo `$apple_count."\n".$`orange_count;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
php solution:
function countApplesAndOranges(t, b, oranges) { orange_count = 0;
}