← Cisco questions
CodingReported in a candidate post, Sep 2020

First Bad Version and Best Time to Buy and Sell Stocks

Filed under Cisco

Solve two problems: 1) Find the first bad version in a sequence [1, n] using a provided API isBadVersion(v). 2) Find the maximum profit from buying and selling a stock once given an array of daily…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cisco questions

Collected from public candidate posts and coding forums. Updated Nov 2026.