in reply to Re: add missing elements and remove duplicates....and some more questions.
in thread add missing elements and remove duplicates....and some more questions.
Hi,
Thanks for the encouraging comments. However. I was not thinking in those very high level complex terms. I just tried to keep it simple. I have not studied algorithms. May be in future I will be able to write this using a cool complex algorithm. Here's how I thought about it.
Before writing this script I thought its better to keep it simple so that if I get a large array, then checking an element, say x with the next and previous could be computationally intensive. I will Google about the log n stuff and try to understand it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: add missing elements and remove duplicates....and some more questions.
by Anonymous Monk on Apr 23, 2017 at 12:54 UTC |