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( ... )
{
...
}