India’s Best Job Seekers and Training Platform Forums Algorithm Solutions Discussion Suppose you have an input character stream …

  • Suppose you have an input character stream …

  • Akash 

    Administrator
    at

    Suppose you have an input character stream (StreamReader) and you have a list of pattens like ABCAS, ASGKT. KHTSD etc. You need to read the stream one by one character and you need to keep count on number of each pattern found so far and when EOF occures just print all the patterns along with count.

    Example:

    Input String: 011100010

    Pattern 1: 011

    Pattern 2: 010

    Output:

    011 => 1

    010 => 1

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 19th October 2020. Attend one week free demo classes.Register Now

New Report

Close