This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// RotationString.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: http://www.yu-zhang.net/blog/2014/07/07/interview-question-rotation-string-2/// | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// RunLengthCompression.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: // | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// ReplaceSpace.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: http://www.yu-zhang.net/blog/2014/07/07/cci150-interview-question-c-remove-or-replace-white-spaces-in-a-string/// | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// RemoveSpace.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: http://www.yu-zhang.net/blog/2014/07/07/cci150-interview-question-c-remove-or-replace-white-spaces-in-a-string/// | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// PermutationString.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: http://www.yu-zhang.net/blog/2014/07/07/cci150c-permutation-string/// | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// ReverseString.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: http://www.yu-zhang.net/blog/2014/07/07/cci150c-reverse-string/// | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// UniqueString.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: http://www.yu-zhang.net/blog/2014/07/06/cci150c-unique-string // | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// TestString.cpp // | |
// ver 1.0 // | |
// Type: source file // | |
// Language: C++ // | |
// Platform: Dell Alienware M14x, Win8 // | |
// Author: Yu Zhang, Syracuse University // | |
// yzhan39@syr.edu // | |
// Description: http://www.yu-zhang.net/blog/2014/07/06/c-string/ // | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DoubleList.h" | |
#include "DoubleNode.h" | |
#include "Interfaces01.h" | |
IDoubleNode * DoubleList::getHead() | |
{ | |
return _head; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <cstdlib> | |
struct ISingleNode { | |
ISingleNode() {} | |
virtual ~ISingleNode() {} | |
virtual void setValue(int value) = 0; | |
virtual int getValue() = 0; | |
virtual ISingleNode * getNext() = 0; |