Compare commits
No commits in common. "e21d20c5691b3bdef137e0118876e744a01d7413" and "abadbf2b71c56ab94c4727be90342afa25c8f498" have entirely different histories.
e21d20c569
...
abadbf2b71
@ -1,7 +1,5 @@
|
||||
<h1>DER BIMMLER</h2>
|
||||
<?php
|
||||
$time_start = microtime(true);
|
||||
|
||||
function move_number_closer(&$headn, &$tailn) {
|
||||
$distance = $headn - $tailn;
|
||||
if (abs($distance) > 1) {
|
||||
@ -102,9 +100,6 @@ for ($i = 0; $i < count($head_movements); $i++) {
|
||||
/* display($current_positions[0], $current_positions[$last_tail]); */
|
||||
}
|
||||
}
|
||||
/* print_r($visited_positions); */
|
||||
print_r($visited_positions);
|
||||
print("Total number of positions=".array_sum($visited_positions));
|
||||
print("Number of unique visited positions=".count($visited_positions));
|
||||
|
||||
// Anywhere else in the script
|
||||
echo 'Total execution time: ' . (microtime(true) - $time_start);
|
||||
|
Loading…
Reference in New Issue
Block a user