You are building an application running inside the web browser (a classic SPA). You have to read a list of user's follow

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

You are building an application running inside the web browser (a classic SPA). You have to read a list of user's follow

Post by answerhappygod »

You are building an application running inside the web browser
(a classic SPA). You have to read a list of user's followers'
usernames from the server. This list can contain thousands of
usernames. You need to implement a component that finds a username
from the list based on user input. For example given a list of
usernames 'fred', 'frank', 'jerry' . When a user types fr , you
should filter the list so that usernames starting with fr are
included ( fred and frank in this case).
How would you implement this (data structures and
algorithms)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply