Question 11

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….






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

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

[advanced_iframe securitykey=”undefined” src=”” width=”100%” height=”600″]

Register for the new batch at KodNest and start your journey to success.Secure Your Spot Now!Claim Your Seat

Request A Callback

Get a Free 30-minute Counseling session with our experts.