Skip to content

Instantly share code, notes, and snippets.

View OfekYa's full-sized avatar

Ofek Yaari OfekYa

View GitHub Profile
name: '#1=#0'
source code: |
input: '00101110'
blank: ' '
start state: Q0
synonyms:
accept: {R: accept}
reject: {R: reject}
# A palindrome is either the empty string, a single symbol,
# or a (shorter) palindrome with the same symbol added to both ends.