You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
aoc-racket/2017/d4/test2.rkt

6 lines
418 B
Racket

7 years ago
#lang reader "main.rkt" ★★
abcde fghij ; is a valid passphrase.
abcde xyz ecdab ; is not valid - the letters from the third word can be rearranged to form the first word.
a ab abc abd abf abj ; is a valid passphrase, because all letters need to be used when forming another word.
iiii oiii ooii oooi oooo ; is valid.
oiii ioii iioi iiio ; is not valid - any of these words can be rearranged to form any other word.