• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Will pointers with arrays decrease the time of execution?

 
Santhosh Gowd
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5334
48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic