Abhinav Pande wrote:I want to optimize below code for efficient memory and run time complexity.
Abhinav Pande wrote:I want to optimize below code for efficient memory and run time complexity.
Joanne
Joanne Neal wrote:
Before doing either of those, it's probably best to get some code that works.
Try calculating the 5th strange prime with your code.
Abhinav Pande wrote:now answer my question!
Abhinav Pande wrote:code is correct now answer my question!
Joanne Neal wrote:
Need working code first.
According to your latest code, the 6th strange prime is 13
Paul Clapham wrote:
And I'm not sure what you mean by "run time complexity". Could you explain that a bit more?
That is no way to talk to people who are trying to help. Even if you did not mean to appear rude, it does appear rude on the net, where you see the writing only. I think that merits an apology.Abhinav Pande wrote: . . . code is correct now answer my question!
Abhinav Pande wrote:
Paul Clapham wrote:
And I'm not sure what you mean by "run time complexity". Could you explain that a bit more?
http://en.wikipedia.org/wiki/Time_complexity
code written in such way that when it compiles should take less amount of time for program execution i.e. optimal solution
not a feasible one.
Campbell Ritchie wrote:
That is no way to talk to people who are trying to help. Even if you did not mean to appear rude, it does appear rude on the net, where you see the writing only. I think that merits an apology.Abhinav Pande wrote: . . . code is correct now answer my question!
Even if you did not mean to appear rude, it does appear rude on the net, where you see the writing only.
Campbell Ritchie wrote:Apology accepted