RS******@gmail.com writes:
Can any body tell me how to find duplicate lines in C
i have tried to find using Binary tree and Text files but not suceeded
.
It works for Word but not for lines
The first thing you should do is figure out *why* it works for words
but not for lines. The code that checks for duplicates should just be
operating on strings; it shouldn't matter whether the strings are
words or lines.
Show us some code, and maybe we can help you figure out what the
problem is.
(If you're having problems with the algorithm, try comp.programming;
if you've having problems implementing the algorithm in C, you're in
the right place.)
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.