← Amazon questions

Stock Profit and Pattern Subsequence

Filed under Amazon

Part 1: Find the maximum profit from buying and selling a stock given an array of prices (one transaction). Part 2: Count the number of times a pattern string appears as a subsequence in a target…

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 Amazon questions

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