JP Morgan & Chase | OA | VNIT Nagpur | Higly Profitable Months | Lottery Coupon
Question · Posted Jun 2023
Question 1 : Higly Profitable Months The stocks of a company are being surveyed to analyze the net profit of the company over a period. For an analysis parameter k an interval of k consecutive months is said to be highly profitable if the values of the stock prices arestrictly increasing for those months. Given the stock prices of the company for n months and the analysis parameter k, find the number of highly profitable intervals. Example stockPrices = [5, ...
The full answer & interview discussion are available to premium members.
Log in Create a free account