Hi AnirudhSingh. I see you came back 36 minutes
before #4 welcomed you to LQ (so do I; I like puzzles!) and gifted you guidance on how to use LQ. Was the bash solution you saw in #3 what you wanted? Or are you using another
language, like perl? An idea I had, was for you to write, in language-independent '
pseudo-code' (basically English), how a human would do it, to show your thoughts on an algorithm.
A minor detail: after your program reports a 5th "None", *IF* the subsequent=following input line
also had None, did you want your program to:
a) have already exited
b) keep reporting=printing "None", until an input line doesn't end with that, or
c) wait for another group of 5 ? Thus, *IF* your input data contained exactly=only 10 consecutive matches='hits', would you want your program to print=report "None" 1, 6, or 2 times? "Bug"?
What new members of this nice community ideally do, in the
Intro Forum, is first share a little about their
distro, PC, and Linux experience/goals/interest. Are you taking a class? Do you enjoy researching thngs on the web (as I do!!!) ?
Anyway, I hope to hear back from you. Study well
