Why is the brute-force approach less ideal here?

Practice this question from Find Duplicates - Frequency Map Pattern Practice Quiz, with options and an explanation.

Question

Why is the brute-force approach less ideal here?

Option A — Correct answer

It scans the remaining array for every value.

Option B

It is always constant time

Option C

It uses no repeated work

Option D

It requires binary tree recursion

Explanation

It scans the remaining array for every value.

Find Duplicates - Frequency Map Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker