You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a nested dictionary, flatten the dictionary such that the keys of the final result are namespaced with a period between the original keys leading to the value.
Business Rules/Errata
Data Structure Required: Dictionary/Map/HashMap This challenge requires a language that supports a version of a Dictionary.
Your function should be able to flatten dictionaries nested arbitrarily deeply.
You can assume that none of the dictionary keys contain a period.
The type of the dictionary values is not important to this exercise. Assume they will always be unsigned integers.
Dictionary Decompression
Given a nested dictionary, flatten the dictionary such that the keys of the final result are namespaced with a period between the original keys leading to the value.
Business Rules/Errata
Example
The text was updated successfully, but these errors were encountered: