-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Braille Translation #14
Comments
Should you include the final instructions and test cases?
Test casesInputs: Output: Inputs: Output: Inputs: Output: |
I'm not understanding where the braille values come from. Are these the real life braille values? |
Take a look at this! |
from Google Foobar
Challenge
Problem Statement:
Braille Translation
Because Commander Lambda is an equal-opportunity despot, she has several visually-impaired minions.
But she never bothered to follow intergalactic standards for workplace accommodations, so those minions have a hard time navigating her space station.
You figure printing out Braille signs will help them, and - since you'll be promoting efficiency
at the same time - increase your chances of a promotion.
Braille is a writing system used to read by touch instead of by sight. Each character is composed of 6 dots in a 2x3 grid, where each dot can either be a bump or be flat (no bump).
You plan to translate the signs around the space station to Braille so that the minions under Commander Lambda's command can feel the bumps on the signs and "read" the text with their touch.
The special printer which can print the bumps onto the signs expects the dots in the
following order:
1 4
2 5
3 6
So given the plain text word "code", you get the Braille dots:
11 10 11 10
00 01 01 01
00 10 00 00
where 1 represents a bump and 0 represents no bump.
Put together, "code" becomes the output string
"100100101010100110100010"
.The text was updated successfully, but these errors were encountered: