Browse Source

Fixed Day 5

master
Graeme Dyas 4 months ago
parent
commit
6e3c1121d3
  1. 2
      Day 5/Part_1.php

2
Day 5/Part_1.php

@ -4,7 +4,7 @@ function get_id($sn, $rows)
{
$sn = str_split($sn);
foreach ($sn as $a) {
$halved = array_chunk($rows, ceil(count($rows) / 2));
$halved = array_chunk($rows, count($rows) / 2);
switch ($a) {
case "F":
case "L":

Loading…
Cancel
Save