Both questions look related to me. If the log file is being updated as well simultaneously, you should be able to use Circular queue/buffer for that.
On Mon, Mar 4, 2013 at 9:10 AM, Ashish Goel <[email protected]> wrote: > Q1. Given a log file, pirnt last n lines. Note that the Log file is being > written into. > Q2. Implement Circular Buffer. > > > Best Regards > Ashish Goel > "Think positive and find fuel in failure" > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
