Garmin Interview Question: What is the difference betwee... | Glassdoor

Interview Question

Software Engineer I Interview Chanhassen, MN

What is the difference between a Hashmap and a Treemap?

Answer

Interview Answer

1 Answer

0

Basic differences include: Treemaps are ordered and must consist of comparable objects. You can construct a Treemap with a comparator so that objects are ordered in a specific way.
Hashmaps consist of keys that are associated with some value. They allow fast addition and deletion of objects.

Anonymous on Oct 29, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.