https://github.com/totaltechgeek/7segment
A simple project to find the longest string that can be displayed on a 7 segment display.
https://github.com/totaltechgeek/7segment
Last synced: about 1 year ago
JSON representation
A simple project to find the longest string that can be displayed on a 7 segment display.
- Host: GitHub
- URL: https://github.com/totaltechgeek/7segment
- Owner: TotalTechGeek
- License: unlicense
- Created: 2018-10-09T01:37:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T02:17:37.000Z (over 7 years ago)
- Last Synced: 2025-02-01T17:13:50.288Z (over 1 year ago)
- Language: JavaScript
- Size: 1.93 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 7 Segment Display
---
This code was a quick implementation of the algorithm to test for the situation described by Tom Scott in the following YouTube video:
[](http://www.youtube.com/watch?v=zp4BMR88260)
## To Run
To launch the program, execute the following from a command-line interface:
```
node index.js [optional regex]
```
You are allowed to pass in a regex string as an argument to this program.
For example, executing
```
node index.js "[^oizehslbg]"
```
Should return the longest word that can be typed in on a 9 digit calculator screen (flipped upside down).
## License
The official license used is the Unlicense. This work is therefore released to the public domain.