Harshad Aware
Results
2
issues of
Harshad Aware
if( head==null ){ // base case1 return head; } if( i==j ){ // base case 2 return head; }
public class Solution { public static LinkedListNode swap_nodes(LinkedListNode head,int i,int j) { if(head==null){ // base case 1 return head; } if(i==j){ // base case 2 return head; } LinkedListNode temp=head,prev=null,c1=null,c2=null,p1=null,p2=null;...