Question: Given a URL, you have to write the main URL and the parameters passed in the form of a report ( check the example )

Given a URL, you have to write the main URL and the parameters passed in the form of a report (check the example). Also, the reference values of all parameters are given. You have to check if the values of all parameters are less than or equal to the values given. If so, then print "200" at the end of the report, else print "404"
Note:
The parameter's list in the reference values can have more parameters than the ones present in the URL. But it is guaranteed that all parameters in the URL are present in the list.
The base url and the parameters are separated by a "?"
Different paramaters are separated by a "
Task
Generate a report on the URL given.
Example
Assumptions
url=https://leetcode.com/problemset/all/?page=4
N-2
params["page", "difficulty"]
val =[5,2]
Output
https://leetcode.com/problemset/all/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!