Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are an active user of the online education platform - XYZ . You have done till now b submissions out of a have been

You are an active user of the online education platform - XYZ. You have done till now b submissions out of a have been correct. So, the current fraction is a / b.But you like fraction x / y very much, tell us the no. of minimum submissions you need to do to reach your favorite fraction.Note x and y will be co-primes If not possible then the answer will be -1Sample Test Cases2[[1,2,4,5],[2,5,1,2]]Output: [3,1]

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

a. What are S, F, and P? Pg45

Answered: 1 week ago