Question

There are millions of requests getting hit on the amazon server by several users for shopping....

There are millions of requests getting hit on the amazon server by several users for shopping. How to identify the unique requests.Write an approach/algorithm for it considering the case of buying any article like shirt/jeans or any accessories

You can use any lanugage Java/C++

0 0
Add a comment Improve this question Transcribed image text
Answer #1

You can use the concept of set.

std::set in C++ is a data structure which does not allow repeated elements, i.e., it stores only the unique elements. In case you try to enter an element which is already present in the set, it simply discards it automatically (that is an in-built property of set).

Hence, if we take all the inputs as strings, maybe we can define a set of strings like set <string> s; and take input inside this set. In that way, only the unique requests can be stored by the users.

Add a comment
Know the answer?
Add Answer to:
There are millions of requests getting hit on the amazon server by several users for shopping....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Amazon to Competition: We Will Crush You! Amazon to Employees: We Will Churn You! Globally, Amazon...

    Amazon to Competition: We Will Crush You! Amazon to Employees: We Will Churn You! Globally, Amazon is one of the largest and most successful companies in any industry. Technological innovation has contributed to its success, as has its employee acquisition practices, which are exceptionally high. The question is what has allowed this company to thrive and maintain its success? This activity is important because it shows how companies like Amazon hire based on personality and individual differences. Such companies place...

  • I have to modify a server program and chat program to work as the following instructions...

    I have to modify a server program and chat program to work as the following instructions but I am completely clueless as to where to start. I'd appreciate any help on how to atleast get started. This must be done in java. Diffie-Hellman Two parties use a key agreement protocol to generate identical secret keys for encryption without ever having to transmit the secret key. The protocol works by both parties agreeing on a set of values (a) and (q)....

  • Kindly answer Question 1-4 with well structured paragraphs. Alibaba-China's Ecommerce Giant: Challenging Amazon? TODAY, ALIBABA GROUP...

    Kindly answer Question 1-4 with well structured paragraphs. Alibaba-China's Ecommerce Giant: Challenging Amazon? TODAY, ALIBABA GROUP is the largest Chinese ecommerce company. In the original Arabic tale of Ali Baba and the Forty Thieves, Ali Baha, the poor woodcutter, opened the cave with hidden treasure by calling out the magic words "Open Sesame." Alibaba's founder selected the name to open up opportunities for small Chinese manufacturers to sell their goods around the world, with the hope of finding treasures for...

  • Chapter 3 Information Systems, Organizations, and Strategy 103 INTERACTIVE SESSION: TECHNOLOGY IS...

    Chapter 3 Information Systems, Organizations, and Strategy 103 INTERACTIVE SESSION: TECHNOLOGY IS THE IPAD A DISRUPTIVE TECHNOLOGY? Tablet computers have come and gone several timesdistribution. Amazon has committed itself to offering before, but the iPad looks like it will be different It the lowest possible prices, but Apple has appealed has a gorgeous 10-inch color display, a persistent Wi publishers by announcing its intention to offer a Fi Internet connection, potential use of high-speed tiered pricing system, giving publishers the...

  • please answer this after reading the article What is the actual problem? What are the known...

    please answer this after reading the article What is the actual problem? What are the known facts? What decision is to be made? How the problem ought to be solved? What are the alternatives? What are your recommendations? New AI tools make BI smarter — and more useful Data science democratized: What used to take data scientists months to prepare may soon be put together in a few days by data-astute business users. By Maria Korolov, Contributing Writer, CIO |...

  • Read this article. Then write a 250 word response on two of the programs you like...

    Read this article. Then write a 250 word response on two of the programs you like the most. Open source business intelligence software 1. BIRT BIRT is an open source BI program that CloudTweaks says is often viewed as the industry standard. BIRT boasts “over 12 million downloads and over 2.5 million developers across 157 countries.” Its users include heavyweights such as Cisco, S1, and IBM (which is also a BIRT sponsor). They also have maturity going for them, as...

  • Spotify, Apple Music Trail Little-Known Rival in Music-Obsessed India Gaana, which means ‘song’ in Hindi, has...

    Spotify, Apple Music Trail Little-Known Rival in Music-Obsessed India Gaana, which means ‘song’ in Hindi, has used its large library of local music and low prices to beat the competition The most popular music-streaming service in India, the world’s biggest untapped digital economy, isn’t from Spotify Technology SA or Apple Inc. Instead, it is a local rival little known outside the country. Noida, India-based Gaana, named after the Hindi word for “song,” has used a hyperlocal approach and cut-rate pricing...

  • As a digital retailer,how does alibaba provide value to Chinese consumers ? whit sets of values...

    As a digital retailer,how does alibaba provide value to Chinese consumers ? whit sets of values are unique to the chinese market? Given that alibaba does not own or distribute any of the merchandise exchanged on its sites, describes what factors had to develop for the company to succeed. Analyze Alibaba's business model relative to all the different forms of digital and online marketing covered in this chapter. Can alibaba succeed in countries outside of China? Why or why not?...

  • Problem 1C: Chapter: CHCC Problem: 1C Say It Ain't So! Is This the Real Thing? INTRODUCTION...

    Problem 1C: Chapter: CHCC Problem: 1C Say It Ain't So! Is This the Real Thing? INTRODUCTION David Ortega is the lead researcher for an upscale restaurant group hoping to add another chain that would compete directly with the upscale Smith and Wollensky restaurants (http://www.smith-andwollensky.com). The Smith and Wollensky Restaurant Group operates a handful of iconic restaurants around the country. The average check for a customer at Smith and Wollensky is approximately $80 to $90. Whenever a new venture of this...

  • The world’s 3 billion-plus smartphones emit the kind of data that health authorities covet during outbreaks....

    The world’s 3 billion-plus smartphones emit the kind of data that health authorities covet during outbreaks. They show where individuals are, where they’ve been and who they might have talked to or even touched — potentially offering maps to find infected people and clues to stopping new ones. But gaining access to this data, even amid a global pandemic, is made complex by the legal and ethical issues surrounding government access to information that can reveal intimate details about citizens’...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT