In your opinion, when creating a nested loop is it best to use the call function and if so is using a pointer the route to go when creating the function?
mr.confused! 0 Newbie Poster
Recommended Answers
Jump to PostIn your opinion, when creating a nested loop is it best to use the call function and if so is using a pointer the route to go when creating the function?
That's like asking when ordering a hamburger is it better to drive a Mustang?
The things in your …
Jump to PostWhenever possible, try to avoid nested loop as they have a worst-case of O(n2) - Big O n square.
the criticism you give is meaningful only for extremely large loops or realtime embedded applications such as scientific instrumentation and measurement.
for small to average sized loops -- the vast …
All 7 Replies
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
jonsca commented: Sometimes that makes a difference. It depnds on how high-end the place is +4
jephthah commented: yeah, i lol'd +8
mr.confused! 0 Newbie Poster
abhimanipal 91 Master Poster
mr.confused! commented: not a smart ass! +1
mr.confused! 0 Newbie Poster
abhimanipal 91 Master Poster
chiwawa10 77 Junior Poster
jephthah 1,888 Posting Maven
iamthwee commented: I cried when I read this, even a little wee came out. +11
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.