链表相交文档结构格式化

This commit is contained in:
skyclouds2001
2023-04-30 14:24:26 +08:00
committed by GitHub
parent 66ad8c156d
commit 513707ca71

View File

@ -101,8 +101,8 @@ public:
## 其他语言版本
Java
### Java
```Java
public class Solution {
public ListNode getIntersectionNode(ListNode headA, ListNode headB) {
@ -150,9 +150,9 @@ public class Solution {
}
```
### Python
```python
Python
```python
class Solution:
def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode:
lenA, lenB = 0, 0
@ -179,7 +179,7 @@ class Solution:
return None
```
### Go
Go
```go
func getIntersectionNode(headA, headB *ListNode) *ListNode {
@ -240,7 +240,7 @@ func getIntersectionNode(headA, headB *ListNode) *ListNode {
}
```
### javaScript
JavaScript
```js
var getListLen = function(head) {
@ -352,6 +352,7 @@ ListNode *getIntersectionNode(ListNode *headA, ListNode *headB) {
```
Scala:
```scala
object Solution {
def getIntersectionNode(headA: ListNode, headB: ListNode): ListNode = {