Solution fixes

This commit is contained in:
Dan Chadwick
2024-11-23 23:28:18 -05:00
parent f813f39f8a
commit 5e5c726ebb
2 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
*/
function day1solution1() {
$start_time = microtime(true);
$instructions = file_get_contents('./inputs/day1.txt');
$instructions = file_get_contents('./2015/inputs/day1.txt');
$up_floors = substr_count($instructions, "(");
$down_floors = substr_count($instructions, ")");
$total = $up_floors - $down_floors;