Algorithm · IBM · Easy
Requirements Function: getPredictionDiff(predictions1, predictions2). Inputs consist of two JSON strings, with each string encoding a non-nested key/value object. Return a list of string keys that are present in both objects while holding unequal values. Under the intended implementation approach, a key missing from the second object does not qualify as a differing value. Examples The key mode occurs in each map, but its associated values are not the same. Notes This…
Checking your access…