cswork / OAOpen practice workspace

DatabricksOA #12

Array Manipulation

Estimated MediumStatement and editorial — judging is being prepared

Topics (AI-labelled)Hashing

Plz check out the source image below for the origina

Example 1

Input:

queries = ["+4", "+5", "+6", "+4", "+3", "-4"]
diff = 1

Output:

[0, 0, 1, 2, 4, 0]

Explanation: Plz check out srcImages below for the explanation

Editorial

Loading solution…