-
- All Implemented Interfaces:
public final class Solution
Example: var li = ListNode(5) var v = li.
val
Definition for singly-linked list. class ListNode(varval
: Int) { var next: ListNode? = null }
-
-
Constructor Summary
Constructors Constructor Description Solution()
-
Method Summary
Modifier and Type Method Description final Integer
numComponents(ListNode head, IntArray nums)
-
-
Method Detail
-
numComponents
final Integer numComponents(ListNode head, IntArray nums)
-
-
-
-