OA2026-08-13
Given an empty array and a series of queries, count unique triplets
AI-Expanded — inferred from the question title, not from the original candidate report
Given an initially empty array, you are provided with a sequence of queries where each query adds a new integer to the array. After each insertion, calculate the total number of unique triplets (i, j, k) such that i < j < k and the sum of the elements at these indices equals a target value.
Context & Summary
Online Assessment Round
💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.
Loading editor...
AI can automatically infer and generate example test cases for this question based on standard algorithmic constraints.
InterviewDigest