class RecurDis{ static Node head; static class Node{ int data; Node next; } void create(int a[], int n){ Node last,t; head = new Node(); head.data = a[0]; head.next = head; last = head; for(int i=1;i