Hi... my code passes for all the test cases given in this thread. but i got WA for many time. please give me some more test case for this problem. i post my code below.
Hlw bro..just remove all the complex thinking about the problem..
If u think some input and output there is a relation u can ...
Search found 4 matches
- Thu Apr 23, 2009 10:48 am
- Forum: Volume 112 (11200-11299)
- Topic: 11247 - Income Tax
- Replies: 50
- Views: 28181
- Wed Apr 22, 2009 1:13 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11362 - Phone List
- Replies: 19
- Views: 13305
Re: 11362 - Phone List
why i am getting TLE
please help
First find out the sorted form of strings in O(nlgn) time . U can sort it by qsort too.
Then scan previous and next string to find if the previous string is a substring of next string.
Hope it will help...
##############################################
I have ...
please help
First find out the sorted form of strings in O(nlgn) time . U can sort it by qsort too.
Then scan previous and next string to find if the previous string is a substring of next string.
Hope it will help...
##############################################
I have ...
- Wed Apr 22, 2009 8:56 am
- Forum: Volume 113 (11300-11399)
- Topic: 11360 - Have Fun with Matrices
- Replies: 38
- Views: 19413
Re: 11360 - Have Fun with Matrices
Hello boss plz read the problem carefully..Obaida wrote:Some 1 plz help!!!
u have done mistakes in inc() and dec() function.
U have skiped the mod 10.
And afterall try to use gets and sscanf() as suggested by MRH.
- Sat Apr 04, 2009 10:26 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11583 - Alien DNA
- Replies: 5
- Views: 1905
Re: 11583 - Alien DNA
I am unable to understand this problem. Can someone please explain it to me??
Than in advance
Its not so hard as u thinking. Just take strings one after another and find out the common bases. Take only common bases and compare it with next string untill the common bases string is not NULL. If NULL ...
Than in advance
Its not so hard as u thinking. Just take strings one after another and find out the common bases. Take only common bases and compare it with next string untill the common bases string is not NULL. If NULL ...