#1536. C++-链表-单链表(数据是字符,不是字符串和数字)

C++-链表-单链表(数据是字符,不是字符串和数字)

Background

Description

C++-链表-单链表(数据是字符,不是字符串和数字) image

参考P869 C++-链表-单链表的例子

Format

Input

Output

Samples

5
a
p
q
r
b
2
2
x
Input ListNode:
a p q r b
Input delete location:
a q r b
Input insert location:
Input insert node:
a x q r b

Limitation

1s, 1024KiB for each test case.