Comments (1)
https://leetcode-cn.com/problems/reverse-linked-list/
func reverseList(head *ListNode) *ListNode {
if head == nil {
return head
}
previous := head
current := head.Next
head.Next = nil
for current != nil {
p := current.Next
current.Next = previous
previous = current
current = p
}
return previous
}
from interview_internal_reference.
Related Issues (20)
- 1.1.3 思路完善 HOT 8
- 美团篇>实现数组和对象的深拷贝 HOT 1
- 5.2.0 浅复制和深复制?怎样实现深复制 HOT 3
- 关于面试问题的应用场景 HOT 1
- 建议
- 百度3.4.8
- tesr
- 同学,学成了就来阿里天猫国际试试吧,实习社招都可以 HOT 8
- 请教问题
- 10.1.5 Redis 常见的性能问题都有哪些?如何解决?
- 11.1.6 MongoDB和关系型数据库术语对比图.md
- 请问这个整理是什么岗位的面试呢?
- Pls add interview background
- 主页上fashwheeltimer是啥?打错了吗?
- Gitbook考虑一下?
- Broken links on the page 12.Zookeeper篇
- 希望mysql版本添加 锁 的内容
- 可以按技术方向进行分类吗,比如添加大数据方向,算法方向。 HOT 5
- 0voice HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interview_internal_reference.