Velocity Reviews > need help in number of inversions in sorting

# need help in number of inversions in sorting

xandra
Guest
Posts: n/a

 11-10-2006
hello:

how many inversions there in S O T R M E ?

thank you

Eric Sosman
Guest
Posts: n/a

 11-10-2006

xandra wrote On 11/10/06 12:58,:
> hello:
>
> how many inversions there in S O T R M E ?

C guarantees that all these character codes are positive
numbers, but says nothing about their values or their relative
broad terms: "No fewer than zero and no more than fifteen."

If you want to impress your instructor with the depth of
your understanding, there's no better way to do it than to
submit an answer like the one above. At one stroke it shows
that you have mastered the material even better than your
teacher has, by pointing up a flaw in the homework assignment.
Since teachers are strongly interested in the increase of
knowledge and wisdom, you can expect to be thanked and suitably
rewarded. Good luck!

--
http://www.velocityreviews.com/forums/(E-Mail Removed)

Fred Kleinschmidt
Guest
Posts: n/a

 11-10-2006

"xandra" <(E-Mail Removed)> wrote in message
> hello:
>
> how many inversions there in S O T R M E ?
>
> thank you
>

One - 'O' is the only letter that looks the same when inverted.
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project

Richard Heathfield
Guest
Posts: n/a

 11-10-2006
Fred Kleinschmidt said:

>
> "xandra" <(E-Mail Removed)> wrote in message
>

>> hello:
>>
>> how many inversions there in S O T R M E ?
>>
>> thank you
>>

>
> One - 'O' is the only letter that looks the same when inverted.

You missed S. Also, T, M, and E can be inverted in particular ways that do
not change their appearance. (Whether this is true in a given font is
another matter - but that's the case for O too.)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not