If possible please suggest further improvement of the String class. Question 3: Given a

题目内容(请给出正确答案)

If possible please suggest further improvement of the String class.

Question 3:

Given a link list, detect whether it's circular using only one loop.

Tips: Below implementation is allowed

for( ... )

{

...

}

The following implementations is NOT allowed

...

for( ... )

{

...

for( ... ) {...}

}

...

or

...

for( p = list->head, q = list->head; p != NULL && q != NULL; p = p->next )

{

...

}

...

for( ... )

{

...

}

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
更多相关问题