题目内容

In Double linked lists (nodes include: data, prior, next), when deleting the node pointed to by the pointer p,the operation is ( ).

A p->prior->next=p->next;p->next->prior=p->prior;
B p->prior=p->prior->prior;p->prior->next=p;
C p->next->prior=p;p->next=p->next->next;
D p->next=p->prior->prior;p->prior=p->next->next;

查看答案
更多问题

Suppose that the sequence of n elements PUSH the stack is p1, p2, p3, ..., pn, and the output sequence is 1, 2, 3, ..., n, if p3 = 1, then the value of p1 is ( ).

A The value may be 2
B The value must be 2
C The value cannot be 2
D The value cannot be 3

The input sequence of a stack is 1, 2, 3, ..., n, and the first element of the output sequence is n, then the i-th output element is ( ).

A n-i+1
B n-1
C i
D Any element is possible

Existing infix expression E = ((100-4) / 3 + 3 * (36-7)) * 2. Which of the following is the equivalent postfix expression of E? (There is only one correct answer)

A、 ( ( 100 4 – ) 3 / 3 ( 36 7 – ) * + ) 2 *
B、 * + / – 100 4 3 * 3 – 36 7 2
C、 100 4 – 3 / 3 36 7 – * + 2 *
D、 * ( + / ( – 100 4 ) 3 * 3 ( – 36 7 ) ) 2

1 Which of the following statements about string is incorrect ( ).

A. Null string is a string of spaces.
B. String is a finite sequence of characters.
C. Pattern matching is an important operation of string.
D. String can use not only sequential storage, but also linked storage.

答案查题题库