CEG's Linux User Group

  • Increase font size
  • Default font size
  • Decrease font size
Home Labs Circularly Singly Linked List - Test Cases
Circularly Singly Linked List

Circularly Singly Linked List - Test Cases

E-mail Print
User Rating: / 4
PoorBest 
Article Index
Circularly Singly Linked List
Source Code
Documentation
Test Cases
Compatibility & References
All Pages

Test cases :


The output of the above code is as shown below

OPTIONS :
1.Insert begin
2.Insert middle
3.Insert end
4.Delete
5.Search
6.Exit
Enter choice : 1
Enter element : 1

List is
1

OPTIONS :
1.Insert begin
2.Insert middle
3.Insert end
4.Delete
5.Search
6.Exit
Enter choice : 3
Enter element : 3

List is
1            3

OPTIONS :
1.Insert begin
2.Insert middle
3.Insert end
4.Delete
5.Search
6.Exit
Enter choice : 2
Enter element : 2
Enter position : 2

List is
1            2            3

OPTIONS :
1.Insert begin
2.Insert middle
3.Insert end
4.Delete
5.Search
6.Exit
Enter choice : 4
Enter element : 1

List is
2           3

OPTIONS :
1.Insert begin
2.Insert middle
3.Insert end
4.Delete
5.Search
6.Exit
Enter choice : 5
Enter element : 2
Element found
No. of occurrences : 1
List is
2          3

OPTIONS :
1.Insert begin
2.Insert middle
3.Insert end
4.Delete
5.Search
6.Exit
Enter choice : 6

End

 



Last Updated on Tuesday, 16 June 2009 17:46  
Please register or login to add your comments to this article.