1p3a Question · Sep 2025

Wolverine C++ Software Engineer Online Technical Assessment

1 upvote 1 reply

Question Details

Free online assessment (OA), 90 minutes, OOD (Out-of-Depth) format, relatively simple. You can use Google search. The following content requires points higher than 188. You can already browse Implemen

Full Details

Free online assessment (OA), 90 minutes, OOD (Out-of-Depth) format, relatively simple. You can use Google search. The following content requires points higher than 188. You can already browse Implement a class PriceDivergenceMonitor that watches pairs of (highly-correlated) stocks and reports whenever the absolute price difference for a registered pair exceeds a given threshold. PriceDivergenceMonitor(int threshold) — store the threshold. void RegisterPair(const std::string& stockOne, const std::string& stockTwo) — start monitoring a new pair. Multiple pairs will be registered; keep monitoring all of them. If the same pair is registered more than once (in either order), ignore duplicates.void UpdatePrice(const std::string& stockName, int newPrice) — called whenever a stock’s price changes. For every registered pair that includes stockName, if both stocks have known prices and abs(p1 - p2) > threshold, call ReportDivergence(...). Clarifications: Differences equal to the threshold are not reported.A stock may appear in multiple registered pairs.If you haven’t received a Price for one of the stocks, not reported yet. ReportDivergence(...) is already implemented for you; the grader checks you call. Wishing everyone good luck in their job search and lots of offers!

Free preview. Unlock all questions →

Topics

Strings