Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A common feature request on Pinterest is the ability to merge two boards into one. This feature is often useful when two boards have very

image text in transcribed

A common feature request on Pinterest is the ability to merge two boards into one. This feature is often useful when two boards have very similar content, or a second board has been mistakenly created. Task Implement the function merge two boards,which accepts two board ids, board_id_1 and board_id_2 and returns the list of pin ids that compose the merged board. The merged board should be created according to the following rules: The merged board contains pins from both boards, in alternating form. That is to say, if board one has pin ids I'1', '2' and board two has pin ids I'3', 4',the merged board should be '1', '3', .If a pin on a board has an image url that is the same of a pin from earlier in the two boards, discard this pin, and add the next unique pin from that board onto the response. You can see the image data of a pin by asking for the image field when requesting the pins of a board. A common feature request on Pinterest is the ability to merge two boards into one. This feature is often useful when two boards have very similar content, or a second board has been mistakenly created. Task Implement the function merge two boards,which accepts two board ids, board_id_1 and board_id_2 and returns the list of pin ids that compose the merged board. The merged board should be created according to the following rules: The merged board contains pins from both boards, in alternating form. That is to say, if board one has pin ids I'1', '2' and board two has pin ids I'3', 4',the merged board should be '1', '3', .If a pin on a board has an image url that is the same of a pin from earlier in the two boards, discard this pin, and add the next unique pin from that board onto the response. You can see the image data of a pin by asking for the image field when requesting the pins of a board

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

Step: 3

blur-text-image

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago