Skip to main content
Tweeted twitter.com/StackCodeReview/status/1538038801536368640
Became Hot Network Question
deleted 34 characters in body
Source Link
pbsb
  • 51
  • 3

This is an actual work problem we had to solve. Put simply: given a structure (e.g. nested dictionaries) and a mapping of old dicionarydictionary keys to new ones, produce a new structure that is anatomically identical to the original, uses the new dictionary keys, and preservers every other value. In spite of the simple phrasing, .

This is an actual work problem we had to solve. Put simply: given a structure (e.g. nested dictionaries) and a mapping of old dicionary keys to new ones, produce a new structure that is anatomically identical to the original, uses the new dictionary keys, and preservers every other value. In spite of the simple phrasing, .

This is an actual work problem we had to solve. Put simply: given a structure (e.g. nested dictionaries) and a mapping of old dictionary keys to new ones, produce a new structure that is anatomically identical to the original, uses the new dictionary keys, and preservers every other value.

added 10 characters in body
Source Link
pbsb
  • 51
  • 3

Notice /items//discount has two slashes in the middle. Slashes represent going deeper one level within the structure.

Notice /items//discount has two slashes in the middle. Slashes represent going deeper within the structure.

Notice /items//discount has two slashes in the middle. Slashes represent going deeper one level within the structure.

added 14 characters in body
Source Link
pbsb
  • 51
  • 3

GivenThis is an actual work problem we had to solve. Put simply: given a structure (e.g. nested dictionaries) and a mapping of old dicionary keys to new ones, produce a new structure that is anatomically identical to the original, uses the new dictionary keys, and preservers every other value. In spite of the simple phrasing, this is an actual work problem we had to solve.

Given a structure (e.g. nested dictionaries) and a mapping of old dicionary keys to new ones, produce a new structure that is anatomically identical to the original, uses the new dictionary keys, and preservers every other value. In spite of the simple phrasing, this is an actual work problem we had to solve.

This is an actual work problem we had to solve. Put simply: given a structure (e.g. nested dictionaries) and a mapping of old dicionary keys to new ones, produce a new structure that is anatomically identical to the original, uses the new dictionary keys, and preservers every other value. In spite of the simple phrasing, .

added 9 characters in body
Source Link
pbsb
  • 51
  • 3
Loading
added 27 characters in body
Source Link
pbsb
  • 51
  • 3
Loading
deleted 20 characters in body
Source Link
pbsb
  • 51
  • 3
Loading
clarification, based on comments
Source Link
pbsb
  • 51
  • 3
Loading
deleted 51 characters in body
Source Link
pbsb
  • 51
  • 3
Loading
added 403 characters in body
Source Link
pbsb
  • 51
  • 3
Loading
Source Link
pbsb
  • 51
  • 3
Loading