*
The moose likes C / C++ and the fly likes Will pointers with arrays decrease the time of execution? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » C / C++
Bookmark "Will pointers with arrays decrease the time of execution?" Watch "Will pointers with arrays decrease the time of execution?" New topic
Author

Will pointers with arrays decrease the time of execution?

Santhosh Gowd
Greenhorn

Joined: Nov 28, 2011
Posts: 13
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?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3615
    
  14

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?
Anil Kollur
Ranch Hand

Joined: Mar 25, 2000
Posts: 101

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://aspose.com/file-tools
 
subject: Will pointers with arrays decrease the time of execution?