2020-03-26から1日間の記事一覧
Problem24 https://leetcode.com/problems/swap-nodes-in-pairs/ 偶数番目と奇数番目をスワップしたリストを返す。 You may not modify the values in the list's nodes, only nodes itself may be changed. とのことなのでリストのvalを書き換えてはいけな…
Problem24 https://leetcode.com/problems/swap-nodes-in-pairs/ 偶数番目と奇数番目をスワップしたリストを返す。 You may not modify the values in the list's nodes, only nodes itself may be changed. とのことなのでリストのvalを書き換えてはいけな…