We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
原题链接
constgetIntersectionNode=function(headA,headB){if(headA===null||headB===null){returnnull}letpA=headA,pB=headBwhile(pA!==pB){pA=pA===null ?headB :pA.nextpB=pB===null ?headA :pB.next}returnpA}