Pallabi Das

Pallabi Das

  • NA
  • 70
  • 592

C# Doubts .can ayone solve these?

Feb 5 2018 9:24 PM
1.Create Stack using IEnumerable of generic type. Create methods to push and pop data from stack without using predefined methods. UsingIEnumerable print data in stack top to bottom, bottom to top and display top 7 values.
 
Consider data in Stackas9 8 7 6 5 4 3 2 1 0
 
Output must be as like:
 
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
0 1 2 3 4 5 6 7 8 9
9 8 7 6 5 4 3
 
2.Create one method(don’t use object data type for method) for sorting which will sort any collection data which is input by user and irrespective of its data type. (Data type like integer, double, string etc).

Answers (1)