Available question text
Count how many index triplets (i < j < k) in a strictly increasing array form an arithmetic progression with common difference diff, i.e., nums[j]-nums[i] == diff and nums[k]-nums[j] == diff. Equivalently, count values x in nums for which x+diff and x+2*diff also appear.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Google
Leetcode 2367. Number of Arithmetic Triplets
Reported Nov 30, 2024 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source