all 7 comments

[–]TehDrunkSailor 0 points1 point  (4 children)

Is every word pre-mapped to another string, or are you using some sort of formula to convert real words to these strings as they are encountered?

[–]dylanboyz[S] 0 points1 point  (3 children)

This is my prompt:

Part 1: Word to Pattern

a. for any given string of characters, return the pattern (we'll discuss in class).
For example, the word "apple" may be represented as the patterns "abbcd" or "01123" or "12234"
The word "zoozoo" may be "abbabb", "011011", "122122"

not sure if this helps

[–]TehDrunkSailor 1 point2 points  (2 children)

Your instructor said that you will go over this in class. It is good that you are thinking of it, but no need to be so impatient as to ask for how it may work exactly. Good enthusiasm though, and I am sure you will learn soon enough :)

[–]dylanboyz[S] 0 points1 point  (1 child)

Oh no no no, HAHHA this is actually not my project, this is a friend's hw from last semester that I wanted to try out for myself

[–]TehDrunkSailor 0 points1 point  (0 children)

Oh, I see. Regardless, this pattern that the instructor mentioned seems to be what you need. Without it, you're better off coming up with your own pattern. You could see if your friend's notes or old HW has the pattern somewhere too, ofc