private void button2_Click(object sender, EventArgs e) { KarthicLinkedList linkedlist = NodeHelper.GetLinkedListByString(this.textBox6.Text); int value = Convert.ToInt16(this.textBox7.Text); this.textBox5.Text = NodeHelper.GetStringByNode(partitionlinkedlist(linkedlist.headnode, value)); }
private void button13_Click(object sender, EventArgs e) { string input = this.textBox1.Text; KarthicLinkedList list = NodeHelper.GetLinkedListByString(input); this.textBox2.Text = NodeHelper.GetStringByNode(RemoveDuplicatesWithoutExtraBuffer(list.headnode)); }
private void button12_Click(object sender, EventArgs e) { string input = this.textBox1.Text; KarthicLinkedList list = NodeHelper.GetLinkedListByString(input); this.textBox2.Text = NodeHelper.GetStringByNode(AvoidDuplicateswithhead(list.headnode)); }
private void button3_Click(object sender, EventArgs e) { KarthicLinkedList linkedlist1 = NodeHelper.GetLinkedListByString(this.textBox1.Text); KarthicLinkedList linkedlist2 = NodeHelper.GetLinkedListByString(this.textBox3.Text); linkedlist1.headnode = KarthicLinkedListHelper.MergeSort(linkedlist1.headnode); linkedlist2.headnode = KarthicLinkedListHelper.MergeSort(linkedlist2.headnode); Node result = FindCommonElements(linkedlist1.headnode, linkedlist2.headnode); this.textBox2.Text = NodeHelper.GetStringByNode(result); //linkedlist1.headnode = KarthicLinkedListHelper. }
private void button5_Click(object sender, EventArgs e) { KarthicLinkedList linkedlist = NodeHelper.GetLinkedListByString(this.textBox10.Text); this.textBox9.Text = NodeHelper.GetStringByNode(MergeSort(linkedlist.headnode)); }