Question: Plz provide the solution asap in python or cpp . Plz it is a request Description Problem Statement You own a chocolate shop with chocolates
Plz provide the solution asap in python or cpp Plz it is a request
Description
Problem Statement
You own a chocolate shop with chocolates priced from to consecutively. A student visits your shop for consecutive days and buys chocolates indexed at A on each day.
Formally, you are given an array A representing the chocolate indexes the student buys each day. Your task is to determine the minimumpriced chocolate remaining in your shop after the day.
Input format
The first line of input contains an integer denoting the indexes.
Next N lines contain an integer Ai where A A A
The next line contains integer denoting the number days.
Constraints
Output format
Print the minimumpriced chocolate remaining in your shop after the Kth day.
Sample test cases
Input
Output
Explanation
st day: stndthth and th chocolate is removed
dots........,
So the chocolate set changes to dotsdots...,
Since the minimum price of chocolate left after the day equals
Input
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
