Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › ARRAY BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Complete the match condition in the Java method so it returns true when the distinct indices find 3 + 8 + 1 = 12. It must return false only after all three loops finish.
OUTPUT
Sampletrue
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.