Hulu Beijing
Aug 31, 2022 · Fundamentals
Algorithm Trio: Pattern Search, Tree Leaf Count, and Bounded Stock Trading
This article presents three algorithmic challenges: counting pattern occurrences on an M×N canvas, determining the number of leaf nodes in a binary tree represented by an array, and maximizing stock trade profit under constraints on negative returns and total gain, each with input specifications, sample cases, and solution outlines.
AlgorithmPattern Matchingbinary tree
0 likes · 8 min read