-
- All Implemented Interfaces:
public final class SolutionExample: var li = ListNode(5) var v = li.
valDefinition 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 IntegernumComponents(ListNode head, IntArray nums)-
-
Method Detail
-
numComponents
final Integer numComponents(ListNode head, IntArray nums)
-
-
-
-