The Gateway to Computer Science Excellence
0 votes
66 views

The number of distinct 1 letter subword present in “NAMITA”  is equal to_______________


Answer given subwords are N,A,M,I,T

But last ‘A’ is not a subword. Is it correct??

closed with the note: got ans
in Theory of Computation by Veteran (116k points)
closed by | 66 views

1 Answer

+5 votes
Best answer
Subwords means letters must be consecutive as in the word.

Since we have 6 letter word NAMITA therefore we will have
6 one letter subwords (i.e. N,A,M,I,T,A) but out of these one A is repeating at last therefore we neglect it as it says distinct letter subword.

Hence we have 6-1=5 distinct one letter subwords(i.e. N, A,M,I,T) of the word NAMITA.
by (487 points)
selected by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,666 questions
56,167 answers
193,840 comments
94,040 users