Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE CODE IN JAVA NEED IT ASAP Programming Challenge Descriptiorn IBM is implementing an online pharmacy application for a major drug store chain. As part

PLEASE CODE IN JAVA NEED IT ASAP

image text in transcribed

Programming Challenge Descriptiorn IBM is implementing an online pharmacy application for a major drug store chain. As part of the application, customers can start to type in the name of a drug and the system will allow them to choose from among the list of drugs which begins with the letters that they have typed. For example, if they type the letters "ASP", the system could offer "ASPRIN" as a possible match, along with other drugs that begin with "ASP". If there's no match, the system will show NONE> Assumptions . The list may be very long, hundreds of thousands of drugs . The call will be made very often, so search speed is crucial. Assume that in the production version, whatever preprocessing you do on the list of drugs is only done once, and the search is the only part that is called repeatedly Input: The entire list of drugs in alphabetical order, followed by a blank line, and then a partial sequence to search for Output The first 2 matching drugs, one per line, or if there's no match Test 1 Test Input B ACETAMINOPHEN ASPERGEL ASPRIN ASPERTAME ATAVAN

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago