You are not logged in. Please login at www.codechef.com to post your questions!

×

How many substrings?

how find the number of diffrent substrings in string S.

asked 08 Sep '13, 19:00

jitendrabafna's gravatar image

2★jitendrabafna
1111
accept rate: 0%

edited 09 Sep '13, 17:02

bugkiller's gravatar image

3★bugkiller
8.7k194898

for clarity: if S=aa than it's got 3 different substrings - empty, 'a' and 'aa'?

(08 Sep '13, 19:21) michal275★

http://en.wikipedia.org/wiki/Substring

If this question is related to the problem included in Sep 13 challenge, then please hold on till the contest gets over. You will be answered in a very better manner. Don't worry. :)

link

answered 08 Sep '13, 23:08

bugkiller's gravatar image

3★bugkiller
8.7k194898
accept rate: 9%

And how come, the tile of this question is "permutation and combination"?

link

answered 09 Sep '13, 12:14

tijoforyou's gravatar image

2★tijoforyou
4.2k52364
accept rate: 15%

1

updated :D

(09 Sep '13, 17:02) bugkiller3★

build the suffix array and compute the lcp(longest common prefix).

link

answered 13 Sep '13, 03:20

sobhan_cp's gravatar image

2★sobhan_cp
113
accept rate: 0%

-1

if the string length is n.. then total substrings are 2^n .

link

answered 08 Sep '13, 23:32

atulthetricky's gravatar image

2★atulthetricky
01
accept rate: 0%

he has asked for different substrings

(09 Sep '13, 17:01) bugkiller3★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×38

question asked: 08 Sep '13, 19:00

question was seen: 1,454 times

last updated: 13 Sep '13, 03:20