TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sahil Dev
NA
77
7.5k
Creating array of lists and combining
Jul 28 2016 12:58 PM
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?
Reply
Answers (
2
)
kindly correct the below codes
adding to source controll