Greg Bacon <[EMAIL PROTECTED]> wrote:

>     You have a finite sequence of unknown length, where each
>     element in the sequence is a string.  Output the middle
>     element of the sequence (for a reasonable definition of
>     middle), traversing the sequence at most once and without
>     storing the elements in an array.

Okay, you've clarified what the input is like.  Now we need 
clarification of what "without storing the elements in an 
array" means.

Does "the elements" mean "all the elements" or "any elements"?  
Does "an array" mean you can store whatever elements you want, 
as long as you don't use a Perl array to do it?

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC
    • ... Michael G Schwern
      • ... Dmitry Kohmanyuk Дмитрий Кохманюк
        • ... Greg Bacon
          • ... ianb
          • ... Ian Phillipps
            • ... Jonathan E. Paton
              • ... Greg Bacon
              • ... Jonathan E. Paton
              • ... Jonathan E. Paton
              • ... Ian Phillipps
          • ... Keith C. Ivey
            • ... Greg Bacon
              • ... Vladi Belperchinov-Shabanski
    • ... Vladi Belperchinov-Shabanski
  • ... Newton, Philip
  • ... Santa Claus
  • ... Andrew . Savige
    • ... Yanick
      • ... Jeff 'japhy' Pinyan
        • ... Dave O'Neill
          • ... Dave O'Neill

Reply via email to