DEV Community

Discussion on: Daily Challenge #277 - Over the Road

Collapse
 
peter279k profile image
peter279k

Simple solution:

<?php
function overTheRoad($address, $street){
  return $street*2 - $address + 1;
}

Here is sample picture to explain all of this:
img