India’s Best Job Seekers and Training Platform Forums Java Problems set Situation – You have millions of records…

  • Situation – You have millions of records…

  • Akash 

    Administrator
    at

    Situation – You have millions of records(Strings) and user is typing “abc” in search box . Your task is to display strings from records in the sequence.

    e.g String in the record contain “abc” starting should appear first, then string which has “abc” in the second, should apprear later as below.

    String – fabcsdf,asdfabc,dfadsfsdfabc,abckdf,ddfabc…

    Displays suggestion like….

    abckdf

    fabcsdf

    ddfabc

    asdfabc

    dfadsfsdfabc

    Question – Which data structure you would use to stor this ?

    And how will you implement to get this(shorted) result

Log in to reply.

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

New Report

Close