添加 链表理论基础.md Scala版本

This commit is contained in:
ZongqinWang
2022-05-11 19:11:53 +08:00
parent a8cfc460e7
commit 558dc33431

View File

@ -210,6 +210,13 @@ type ListNode struct {
}
```
Scala:
```scala
class ListNode(_x: Int = 0, _next: ListNode = null) {
var next: ListNode = _next
var x: Int = _x
}
```
-----------------------