need help in number of inversions in sorting

Discussion in 'C Programming' started by xandra, Nov 10, 2006.

  1. xandra

    xandra Guest

    hello:

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

    thank you
    xandra, Nov 10, 2006
    #1
    1. Advertising

  2. xandra

    Eric Sosman Guest

    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!

    --
    Eric Sosman, Nov 10, 2006
    #2
    1. Advertising

  3. "xandra" <> wrote in message
    news:...
    > 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
    Fred Kleinschmidt, Nov 10, 2006
    #3
  4. Fred Kleinschmidt said:

    >
    > "xandra" <> wrote in message
    >

    news:...
    >> 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
    adjust your email clients.
    Richard Heathfield, Nov 10, 2006
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jochus
    Replies:
    1
    Views:
    766
    John Ratliff
    Oct 30, 2005
  2. xandra

    how many inversions????

    xandra, Nov 10, 2006, in forum: C++
    Replies:
    1
    Views:
    329
    Ian Collins
    Nov 10, 2006
  3. Replies:
    2
    Views:
    1,424
    James Kanze
    Jul 6, 2010
  4. Jason
    Replies:
    0
    Views:
    383
    Jason
    Oct 4, 2006
  5. Replies:
    3
    Views:
    173
    Ted Zlatanov
    Oct 22, 2007
Loading...

Share This Page