Skip to content
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

Multiple possibilities #2

Open
Zayceur opened this issue May 14, 2017 · 2 comments
Open

Multiple possibilities #2

Zayceur opened this issue May 14, 2017 · 2 comments

Comments

@Zayceur
Copy link
Contributor

Zayceur commented May 14, 2017

Hi,
There are some words that could be written by different ways.
For example, words which contains "co" can be written with Co (cobalt) or C (carbon) and O (oxygen).
It will be great if the website show all the possibilities.
BTW, nice job 👍

@Maxzilla60
Copy link
Owner

Hey, @Zayceur !

I'm aware of the fact that different words can be split up in multiple ways. I've chosen to prioritize the two-letter symbols over one-letter ones in the algorithm 'cause I thought that would be more interesting.

To be honest with you, I don't immediately know how I would implement showing all the possibilities. 😅
But I do agree it would be nice to have and I'll keep it in mind! 😄

Thank you very much! 😁

@Zayceur
Copy link
Contributor Author

Zayceur commented May 15, 2017

For the algorithm you could work with a tree.
For example :

tjkslm4

(Left is one letter first, right is two letters first)

Then you check from the bottom to the top that the result is good.

@Maxzilla60 Maxzilla60 added the Hacktoberfest https://hacktoberfest.digitalocean.com label Oct 1, 2019
@Maxzilla60 Maxzilla60 removed the Hacktoberfest https://hacktoberfest.digitalocean.com label Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants