Skip to main content
All Questions

Return the total number of shares held on each date.

Unlock detailed company stats for this questionUpgrade

Share counts of several companies are given at specific dates (each company lists only the dates its count changed). For each date, return the total shares held; a company with no entry on a date keeps its previous value, and a company with no earlier entry counts as 0. Example: PLTR 100 on 5/1 and 200 on 5/5, AAPL 50 on 5/5 and 100 on 5/8, TSLA 200 on 5/1 and 100 on 5/8 give [("5/1", 300), ("5/5", 450), ("5/8", 400)].

Community answers

No answers contributed by the community yet.

Related courses

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.

Course

System Design Interviews

Learn how to answer the latest system design questions across product, infrastructure, and AI domains. Features in-depth video examples, written breakdowns, and helpful reference patterns. Watch senior engineers and managers answer these questions in mock interview videos.