xinsikuangchao
BAN USER
Comments (3)
Followers (1)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
class Cell
{
public:
int x;
int y;
bool left, right, up, down; // whether it can go left/right/up/down
};
class Maze
{
std::list<Cell> cells;
};
Comment hidden because of low score. Click to expand.
0
of 0 vote
Node* pre_order_successor(Node* p)
{
if(NULL == p) return NULL;
if(NULL != p->left) return p->left;
if(NULL != p->right) return p->right;
while(NULL != p->parent)
{
if (p->parent->left == p && NULL != p->parent->right)
return p->parent->right;
p = p->parent;
}
return NULL;
}
Page:
1
RepNitaniyaGrown, Animator at ASAPInfosystemsPvtLtd
I am a talented video editor with an eye for compelling stories and 3 years of experience. I committed to ...
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Quick sort solution:
- xinsikuangchao July 07, 2012