Closed. This question needs debugging details。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
2个月前关闭。
这行:将
这与许多运营商不同。例如,减法
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
2个月前关闭。
ListNode odd = head;
ListNode even = head.next;
odd = odd.next = even.next;
even = even.next = odd.next;
这行:将
odd = odd.next = even.next;
分配给even.next
,然后将odd.next
分配给odd.next
?还是将odd
分配给odd.next
,然后将odd
分配给even.next
? 最佳答案
分配是正确的关联。这意味着该语句被解释为:
odd = (odd.next = even.next);
这与许多运营商不同。例如,减法
1 - 2 - 3
是(1 - 2) - 3
而不是1 - (2 - 3)
。