India’s Best Job Seekers and Training Platform Forums Data Structure Design a data structure that supports kind of full text search …

  • Design a data structure that supports kind of full text search …

     Akash  updated 10 months, 2 weeks ago 1 Member · 1 Post
  • Akash 

    Administrator
    at

    Design a data structure that supports kind of full text search but in numbers.

    We are given file with lot of 10-digits numbers, for example:

    1234 567 890

    4124 123 123

    3123 123 322

    On a given number X we should return all numbers that contain X.

    For example, if the number 123 was given, we should return all numbers (from the list above) because 123 is in all of them.

    If the number 41 was given we should return only the middle number – because the number 41 is only in it.

Log in to reply.

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

New Report

Close