View Single Post
Old 2009 June 8th, 10:38 AM   #2 (permalink)
lime
Glutton!
 
lime's Avatar
 
Join Date: Nov 2007
Location: Russia
Posts: 949
lime just joined TestMagic.
It is ok to post your question here. But I really want to mention, that according to the way you're writing your questions, there is little chance you will get the answer for them. You are extremely sloppy and careless about punctuation. You're putting as many dots as you want whenever you want. You're ignoring comas where they need to be put. You're inserting spaces before punctuation. Summarizing, you're making everything to make your writing very difficult to apprehend.

If you're have difficulties typing on keyboard, you might prefer first to practice a little hitting the keys. Otherwise, if it is just the way you are, this devil-may-care attitude to others is absolutely inappropriate. So, next time please care about the way you communicate via writing.

1. Let's say that "a" > "b" if number of position of "a" is greater than position of "b". As I was able to decipher from what you have written, the conditions are:

1) c>b;
2) b=d+1 or b=d-1 if and only if b=c+1 or b=c-1.

Is that correct? Then b must be less than d. Therefore, we have next possible outcomes depending on position of "c":

"c***" - 0 possible outcomes since "b" must be before "c";
"*c**" - 0 possible outcomes since it must be "bc**" but "d" must be next to "b";
"**c*" - 2 possible outcomes: "dbca" and "bacd";
"***c" - 2 possible outcomes: "adbc" and "badc".

Total 4 possible outcomes.

Last edited by lime : 2009 June 8th at 12:04 PM. Reason: "if and only if" added
lime is offline   Reply With Quote