Task: Implement an Ordered Key-Value Data Structure in JavaScript
Task: Implement an Ordered Key-Value Data Structure in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a JavaScript data structure that maintains both insertion order during iteration and O(1) key lookups . This is a common problem when dealing with ordered…
The task
You need to implement a JavaScript data structure that maintains both **insertion order** during iteration and **O(1) key lookups**. This is a common problem when dealing with ordered collections that also need fast access by ID.
Part of PrimeIntellect/Terminal-Lego-15k.