Which edge case matters for this problem?

Practice this question from Number of 1 Bits - Brian Kernighan Pattern Practice Quiz, with options and an explanation.

Question

Which edge case matters for this problem?

Option A — Correct answer

n = 0 should return 0.

Option B

Whether intervals overlap

Option C

Whether a graph has cycles

Option D

Whether a matrix is square

Explanation

n = 0 should return 0.

Number of 1 Bits - Brian Kernighan Pattern Practice Quiz

All questions · Previous question

Open on QuizMaker