Skip to content

Instantly share code, notes, and snippets.

@codepo8
Last active November 23, 2023 09:57
Show Gist options
  • Save codepo8/9e7dcabb2a9b0c8f3c19441563c6318c to your computer and use it in GitHub Desktop.
Save codepo8/9e7dcabb2a9b0c8f3c19441563c6318c to your computer and use it in GitHub Desktop.

Thumbs up for the old school

If 44-33-555-555-666 is hello and 9-666-777-555-3 is world, what is:

9-33-0-2-777-33-0-3-33-888-33-555-666-7-33-777-7777 = ???

Can you do an encoder/decoder for this way of writing?

@gpetrioli
Copy link

Here is (verbose) programmatic version 😀 (no UI)
https://gist.github.com/gpetrioli/cfc05bb447f2706f2de833c9cea4e351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment