Subj : Re: puzzle To : comp.programming From : spinoza1111 Date : Sun Jul 10 2005 04:59 am CBFalconer wrote: > karen wrote: > > wrote in message > > > ... snip ... > >> > >> STILL fails to work for floating point systems because in FP > >> systems there can be >1 bitwise representation of the same n. > > > > Never mind the validity of the code. Do you recall the original > > specs? > > > > "ok here is a puzzle. there is an integer array whose length is > > odd, and all the the array appear exactly two times except one. > > Find the number in O(n) time. Try to do it without using any > > other data structure." > > > > Note that word "INTEGER". It doesn't HAVE to work for floating > > point systems! > > Shhh. You might interfere with the exposition of his erudition. I am not trying to expose erudition and I for one resent the rather self-defeating idea that to do other than engage in self-defeating irony, racism and sexism is somehow snobbish or vain. Furthermore, in this thread, I have repeatedly acknowledged that I did not have enough erudition to think of, or in my case from grad school remember, the XOR solution. What to you is "erudition" is simply the complete sentence and topic paragraph. Get used to it. It is called in fact communication, as opposed to a bunch of self-defeating creeps with anger management problems blowing off steam in such a manner that has made Internet knowledge a joke. > > -- > Some informative links: > news:news.announce.newusers > http://www.geocities.com/nnqweb/ > http://www.catb.org/~esr/faqs/smart-questions.html > http://www.caliburn.nl/topposting.html > http://www.netmeister.org/news/learn2quote.html .