Will pointers with arrays decrease the time of execution?
Santhosh Gowd
Greenhorn
Joined: Nov 28, 2011
Posts: 13
posted
0
I am trying to find least common prefix of suffixes in a string using C. For this i am using simple array of charaacters. The length of a string can be of 100000. I am able to find out the answer, however, i could not do it in stipulated time limit. Will the usage of pointers with arrays decrease the time of execution?
Well, it's hard to say because we don't know what you're doing right now. Also, can you be more specific about the problem you're trying to solve in the first place?
Post the code snippet - it might be a confidential or very project specific code, but you can post only the part that does this finding prefix with commenting or removing other parts.
It will definitely help others to see the algorithm/programming technique used.
Everyday is a Learning phase! Hence ask "What have I learnt today?"
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Will pointers with arrays decrease the time of execution?