The Gateway to Computer Science Excellence
0 votes

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
closed by | 119 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.
selected by
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
52,315 questions
60,427 answers
95,227 users