Skip to content
Easy Remember Hash Tables Multiple Choice

What is the time complexity of checking if a string is an anagram of another using a frequency array?

Remember — Tests recall of fundamental facts and definitions.

Answer Options

A O(1)
B O(n)
C O(n log n)
D O(n²)

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 32+ more Hash Tables questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Hash Tables topic (Data Structures).

More Hash Tables Questions