#42. mapAB2
mapAB2
Background
Description
Modify and return the given map as follows: if the keys "a" and "b" are both in the map and have equal values, remove them both.
Format
Input
Output
Samples
"a": "aaa" "b": "aaa" "c": "cake"
{"c": "cake"}
"a": "aaa" "b": "bbb"
{"a": "aaa", "b": "bbb"}
"a": "aaa" "b": "bbb" "c": "aaa"
{"a": "aaa", "b": "bbb", "c": "aaa"}
Limitation
1s, 1024KiB for each test case.