10 lines
262 B
PHP
10 lines
262 B
PHP
|
<?php
|
||
|
|
||
|
$buffer = str_split(file_get_contents('./input.txt'));
|
||
|
|
||
|
for ($start = 0, $max = count($buffer); $start < $max; $start++) {
|
||
|
$slice = array_slice($buffer, $start, 14);
|
||
|
if (count(array_unique($slice)) === 14) {
|
||
|
echo $start + 14; exit;
|
||
|
}
|
||
|
}
|