Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Efficient Code? Pin
Igor Sukhov1-Sep-01 12:02
Igor Sukhov1-Sep-01 12:02 
GeneralRe: Efficient Code? Pin
Ravi Bhavnani1-Sep-01 12:09
professionalRavi Bhavnani1-Sep-01 12:09 
GeneralRe: Efficient Code? Pin
Igor Sukhov1-Sep-01 12:48
Igor Sukhov1-Sep-01 12:48 
GeneralRe: Efficient Code? Pin
Ravi Bhavnani1-Sep-01 13:25
professionalRavi Bhavnani1-Sep-01 13:25 
GeneralRe: Efficient Code? Pin
Igor Sukhov2-Sep-01 4:25
Igor Sukhov2-Sep-01 4:25 
GeneralRe: Efficient Code? Pin
Ravi Bhavnani1-Sep-01 13:26
professionalRavi Bhavnani1-Sep-01 13:26 
GeneralRe: Efficient Code? Pin
Igor Sukhov2-Sep-01 4:26
Igor Sukhov2-Sep-01 4:26 
GeneralRe: Efficient Code? Pin
A.R.2-Sep-01 22:57
A.R.2-Sep-01 22:57 
Thank you Igor for your response.
In my original post, I was saying that I didn't use any data structure like the stack because it's supposed to save memory and be efficient (for efficient code, my personal view is that it solves the problem in less cycles of the processor in question, and saves as many resources as it can).
Your code is very elegant and effcient (from my own perspective), but I'm affraid that it would be rejected anyway based on the fact that it is using the system's stack for the recursion (Alas, a data structure), and dereferencing the double pointer takes some more time than dereferencing a single pointer.
I could imagine that this will be the response from the person who asked me to do such a function.
Just to be fair, I had requested to code another function related to binary trees, and guess what? I used recursion but had the same feedback Dead | X|
GeneralRe: Efficient Code? Pin
Igor Sukhov3-Sep-01 0:01
Igor Sukhov3-Sep-01 0:01 
GeneralCustom Dialogs Pin
Frank Deo31-Aug-01 11:18
Frank Deo31-Aug-01 11:18 
GeneralRe: Custom Dialogs Pin
Christian Graus31-Aug-01 11:36
protectorChristian Graus31-Aug-01 11:36 
GeneralRe: Custom Dialogs Pin
Frank Deo31-Aug-01 12:54
Frank Deo31-Aug-01 12:54 
GeneralRe: Custom Dialogs Pin
Christian Graus31-Aug-01 13:20
protectorChristian Graus31-Aug-01 13:20 
GeneralHandler for Highlighting Text Pin
Dave Glick31-Aug-01 11:09
Dave Glick31-Aug-01 11:09 
GeneralRe: Handler for Highlighting Text Pin
Not Active31-Aug-01 12:31
mentorNot Active31-Aug-01 12:31 
GeneralError LNK2001 Pin
31-Aug-01 8:28
suss31-Aug-01 8:28 
GeneralRe: Error LNK2001 Pin
Not Active31-Aug-01 9:32
mentorNot Active31-Aug-01 9:32 
GeneralActiveX controls and BitBlt Pin
squizz31-Aug-01 5:24
squizz31-Aug-01 5:24 
Generallooking for clarification Pin
Josh Knox31-Aug-01 5:21
Josh Knox31-Aug-01 5:21 
GeneralRe: looking for clarification Pin
Chris Losinger31-Aug-01 6:07
professionalChris Losinger31-Aug-01 6:07 
GeneralRe: looking for clarification Pin
Josh Knox31-Aug-01 6:30
Josh Knox31-Aug-01 6:30 
GeneralRe: looking for clarification Pin
Paolo Messina31-Aug-01 7:06
professionalPaolo Messina31-Aug-01 7:06 
QuestionWhere to download e-books about "COM"? Pin
Maer72731-Aug-01 5:09
Maer72731-Aug-01 5:09 
GeneralAbout SDK programming Pin
xuhongsheng31-Aug-01 4:27
xuhongsheng31-Aug-01 4:27 
GeneralRe: About SDK programming Pin
Gregg Carlstrom31-Aug-01 4:33
Gregg Carlstrom31-Aug-01 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.