public Node removeDup(Node head) {
		if (head == null) {
			return null;
		}
		Node p = head;
		while (p.next != null) {
			Node q = p;
			while (q.next != null) {
				if (p.data == q.next.data) {
					deleteNextNode(q);
				}
				q = q.next;
			}
			p = p.next;
		}

		return head;
	}