HF RL Explorer

Task: Implement Fast Flatten/Unflatten Functions for Nested JavaScript Objects

Task: Implement Fast Flatten/Unflatten Functions for Nested JavaScript Objects: a task in Terminal-Lego-15k (Harbor dataset). Implement two JavaScript functions flatten and unflatten that can efficiently convert between nested JavaScript objects and flattened key-value pairs.

The task

Implement two JavaScript functions `flatten` and `unflatten` that can efficiently convert between nested JavaScript objects and flattened key-value pairs.

Part of PrimeIntellect/Terminal-Lego-15k.