1p3a_oj Question

Best Time to Buy and Sell Stock IV

Question Details

You are given an integer array prices where prices[i] is the price of a given stock on the ith day. Design an algorithm to find the maximum profit. You may complete at most k transactions. Not

Full Details

🔒

Unlock all Lyft questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a lyft interview for a swe role during the coding round.

It covers the following topics: Arrays .

Topics