Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Creating array of lists and combining
Sahil Dev
Jul 28 2016 12:58 PM
231
Reply
I want to do the following:
1)Create an array of 100 lists
So, I have:
List<
int
>[] a =
new
List<
int
>[100];
2)Next I do,
for
(j=0; j<100;j++)
{
a[j] =
new
List<
int
>();
}
3) Next I add elements to each;
a[j].Add(3);
//and so on
4) Now I want to combine all the lists into a single list
I do not know how to do that
Please note that I cannot create a single list due to some algorithmic constarints.
Can anyone advise?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
kindly correct the below codes
adding to source controll