Question DSA-STR-0022
EasyWhat is a substring?
- A.
A contiguous sequence of characters inside a string
- B.
Any set of characters from the string
- C.
Show answer and explanation
Answer: A
'ell' is a substring of 'hello'; 'hlo' is not.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Strings question
What is a substring?
A contiguous sequence of characters inside a string
Any set of characters from the string
Answer: A
'ell' is a substring of 'hello'; 'hlo' is not.
The string in reverse
The first character only