DatabricksOA #12
Array Manipulation
估计中等评测数据准备中,可先阅读题面
考点(AI 标注)哈希计数
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