Re: How many bytes per Italian character?



Just venting.

Here is a story about somebody who writes compilers I highly admire.
http://www.bearcave.com/random_hacks/permute.html
or just type "Calculating Permutations" in your favorite browser.
It should be the first link.

I was really happy when I stumbled across the web page, because I had a
similar incident.

I never applied to write a compiler. I just got the same type of question
from Microsoft.
The question was how to reverse a string using only 1 free character.
Change
Hello my name is nobody
Into
nobody is name my Hello
I didn't know how to answer that on my feet either. It was a phone
interview.
I then asked the interviewer a question he could not answer, so I told him
the answer.
He then told me the answer to his question.
If you want to, you can figure it out for yourself, or you can scroll down
to see the answer.
































First, reverse the string.
ydobon si eman ym olleH
Now, reverse each word.
nobody is name my Hello

I don't know.
Maybe I am the only one who doesn't know how to do that off the top of my
head?
I have never seen that question arise in this newsgroup.
I am waiting....


.



Relevant Pages

  • Re: ASM to C
    ... >> reverse engineer code is not reasonable. ... > I think the big myth here is that decompilation is not possible. ... based optiming compilers in reverse. ... See Morgan book for detailed flow graph compilation algorithms: ...
    (comp.lang.asm.x86)
  • Re: Ada used in General Aviation (GA) applications?
    ... Nobody wants to use two compilers, nobody wants to cobble the whole mess ... There are quite a few languages using C as a target language, ...
    (comp.lang.ada)
  • Re: Its the abstraction, man!
    ... compilers, they naturally use more non-lisp programming languages. ... But to parse Lisp, you don't need the complexity of a parser ... specified in such a way that the applicability of a parser generator ... Nobody can fix the economy. ...
    (comp.lang.lisp)
  • Re: Why would someone use c++ compiler on a C code?
    ... Probably the reverse, C++ and its compilers are more pedantic about a ... unless you are aware of the risks. ... Ian Collins. ...
    (comp.lang.c)
  • Re: Thou shalt have no other gods before the ANSI C standard
    ... > Most compilers will not. ... Nobody has ever been able to name one, afaict. ... -- Andrew Koenig ...
    (sci.crypt)

Loading