@ipratikmishra It is used to accumulate the number of string repeat in the brackets, if the number is more than one digits in the string s.
Posts made by winechen9
RE: Concise JAVA solution, O(1) memory O(n) time
@pranjsha I don't think it is necessary to modify the original code... Since headA = headA.next and headB = headB.next will finally get null if they can't find the intersection, so "return headA" will be null.
And about the 1st condition... "return headA" will also return the intersection point...