福哥答案2020-08-07: 1.新增虚拟头,返回head.Next。2.换头,返回head。 代码用go语言编写,如下: package test32_deletenode import ( "fmt" "testing" ) //go test -v -test.run TestDeleteNode func TestDeleteNode(t *testing.T) { if true { head := &ListNode{} head.Val = 1 head.Next = &ListNode{} head.Next.Val =...