Pergunta de entrevista da empresa Baidu

How would you reverse a singly-linked linked list in C++?