r/ProgrammerHumor • • 6d ago

Meme dynamicProgramming

Post image
6.2k Upvotes

153 comments sorted by

View all comments

Show parent comment

1

u/Ziiiiik 5d ago

What would you use? A binary tree?

1

u/guyblade 4d ago

Sure. That's the underlying structure in both C++'s std::map and Java's TreeMap. They're super useful for dealing with timeseries data--especially when you have data coming from sources that may not give you the data already ordered for you or when you need to combine data from a bunch of sources.