Re: finding the middle of a linked list in one iteration



On Apr 29, 12:57 am, arnuld <sunr...@xxxxxxxxxxxxxxx> wrote:
I searched all the archives of the this newsgroup but did not find
anything on the solution to this problem except this one long
discussion from comp.lang.c, where people claim that its impossible:http://groups.google.com/group/comp.lang.c/browse_thread/thread/15fe9...

My colleague has solved this impossible problem, down here is the code.
There is one thing I want to ask for, is finding the middle of a linked
list is really of any practical benefit ?  I have never seen anyone using
it. Even inserting an element at a given position in the linked list (an
exercise from Data Structures and Algorithms by Aho, Hopcraft and Ullman)
does not seem to make any sense to me, I am programming from 1 year and my
colleague is programming from last 3 years and none of us have used
insertion at some place inside the linked list or finding the middle of a
linked list.
--www.lispmachine.wordpress.com
my email is @ the above blog.
Inserting an element at a given position in a list is practical. Text
editors often represent their data as a linked list, and it would be
useful to be able to insert text at the given cursor position. Note
that this would be faster than if an array of lines was used.
.



Relevant Pages

  • Shared Drives
    ... If you are not skilled at programming macros, ... the best thing to do is to find someone (a colleague or ... When users open their local copies, the macro ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Interesting other google groups, etc
    ... Over the years I have done a substantial amount of systems and application ... IMHO, systems programming should only be done, and can ... colleague on the last vehicle system rewrite has an MS in CS, ... of the space station, involving solving thousands of simultaneous equations. ...
    (comp.lang.cobol)
  • Insert into Table_variable - UDF vs. SP behavior?
    ... I am wondering if MS is planning to change the behavior of UDFs vs. SP when ... A colleague and I were working on changing temp table inserts into ... I ask because to my mind it is more efficient when inserting from an SP vs. ...
    (microsoft.public.sqlserver.server)
  • Shared Drives
    ... I dont think I can get a contractor and I ... know noone here know how to programm like that. ... If you are not skilled at programming macros, ... >the best thing to do is to find someone (a colleague or ...
    (microsoft.public.excel.worksheet.functions)
  • Re: A good text editor for JAVA?
    ... > I have a colleague who uses vi to write C programs, Eclipse to write ... > he finds it fairly easy to keep them straight because he uses the ... > programming and Java programming as so different ...
    (comp.lang.java.programmer)