Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] "How to"



On Mon, May 12, 2014 at 11:06 PM, Daniel A. Ramaley <daniel.ramaley@example.com> wrote:
I am sorry that i misunderstood and replied
inappropriately.

No problem Daniel. Please let us forget about it. Tomorrow will be shiny here.

By the way, I am preparing 2 scripts doing the job. They are totally different.
But they both will be able to make it.
One is based on a simple text file, the second one with a DB (sqlite). I did not find a better
way to do the job. I must admit that I only focus on the DB method, I really cannot get the
file method to be efficient... This is why we want to discuss... I am sure more brains will give
us different methods.

As you did not like my question, I wonder if pure algo is something acceptable?
Like:
Let say we have a 10,000 array of 0 and 1. You want to find the longest series of "1" (and its
position). One pass only. We don't care language here, just algorithm.
But we go outside Linux scope. As I love both subjects, anyone will be fine for me :)

br. 



--
2 + 2 = 5, for very large values of 2.

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links