Coding-ninjas-data-st.-through-java icon indicating copy to clipboard operation
Coding-ninjas-data-st.-through-java copied to clipboard

Correct runtime error by adding two base cases.

Open Harshadaware11 opened this issue 2 years ago • 0 comments

if( head==null ){ // base case1 return head; } if( i==j ){ // base case 2 return head; }

Harshadaware11 avatar Jan 05 '23 10:01 Harshadaware11