Question DSA-STR-0059
MediumA string of 26 lowercase letters is checked for being a pangram. What extra space is needed with a boolean array?
- A.
O(log n)
- B.
O(n²)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Strings question
A string of 26 lowercase letters is checked for being a pangram. What extra space is needed with a boolean array?
O(log n)
O(n²)
Sign up free to see the answer and a step-by-step explanation.
O(n)
O(1) (26 flags)