当前位置:网站首页>[206. reverse linked list]

[206. reverse linked list]

2022-06-22 21:05:00 Cat star people who love Durian


One 、 Title Description

Here's the head node of the list head , Please reverse the list , And return the inverted linked list .

 Insert picture description here
 Insert picture description here

Example 3:
Input :head = []
Output :[]

Tips :
The number range of nodes in the linked list is [0, 5000]
-5000 <= Node.val <= 5000

source : Power button (LeetCode)
link :https://leetcode.cn/problems/reverse-linked-list


Two 、 Provide easy to read code diagram

原网站

版权声明
本文为[Cat star people who love Durian]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221941074177.html