need help in number of inversions in sorting

E

Eric Sosman

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
order. Thus, your question is not answerable except in fairly
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!
 
R

Richard Heathfield

Fred Kleinschmidt said:
news:fe69588dbb857bf5695a339810e801c8@localhost.talkaboutprogramming.com...

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
adjust your email clients.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top