Automated Traders Desk Interview Question for Software Engineer / Developers
- 0of 0 votes
AnswersOnsite Interview (coding test) --
- The Hercules April 04, 2008
Q3) Now write a derived class Undo_Buffer that derives from Buffer. It will provide the ability to undo the last change to the buffer. It should have a member variable, last_buffer, which is a copy of the internal unsigned char array from the last change to the buffer. For example, if the buffer has "0123456" and undo_buffer[3] = 'z' is called, then the Undo_Buffer class holds the new change value of "012z456".
Undo_Buffer should provide a method undo() which will revert the buffer to the last saved buffer. There does not need to be any access to the last_buffer, except to provide the functionality of undo.| Report Duplicate | Flag | PURGE
Automated Traders Desk Software Engineer / Developer C Coding
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.