Quote:
Originally posted by cagrET@31-May 03, 05:05 PM
some questions:
1. abcdefghijklmnopqrstuvwxyz - only those letters are allowed ?
2. How many php files are allowed ?
3. Tell me if I understand the rules:
I read sentence - in array i have quantity of each letter
Then when i use some letter to build word - i reduce quantity of some letter in my array - i cant have less than 0 letter
ok is that correct ? :-)
|
seems like you have the right idea
1. - yes.
2. I did not specify a limit, but I suspect 1 would do the job.
3. Yes, thats about right. Only thing I should add - you have 2 spare letters that you can use when ever you need them. For example, if your array = 0 letters and you only needed say, a B to complete an other word, then you can use one of your spares as the B. You cannot use 2 of the same letters for you spares.