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
osyris zosar
NA
289
27k
How to get same value of multiple lists
Jan 4 2021 7:14 PM
Lets say I have 4 lists
List<
int
> list1 =
new
List<
int
>();
list1.Add(4);
list1.Add(5);
list1.Add(6);
list1.Add(7);
list1.Add(9);
list1.Add(1);
List<
int
> list2 =
new
List<
int
>();
list1.Add(4);
list1.Add(7);
list1.Add(3);
list1.Add(0);
List<
int
> list3 =
new
List<
int
>();
list1.Add(0);
list1.Add(5);
List<
int
> list4 =
new
List<
int
>();
list1.Add(8);
list1.Add(5);
list1.Add(6);
list1.Add(7);
list1.Add(9);
list1.Add(1);
list1.Add(0);
list1.Add(3);
list1.Add(11);
i was thinking about starting with the list with the highest amount of number :
list4
[A] than loop to each list and see if the other lists contain that number and do A+1
so it gets to next value in the list4 until it reaches the end of the list
but there must be a more easy way that i don't know of yet
Reply
Answers (
3
)
Set web form textbox text to header of master page.
Walmart specify Item Type condition when listing a item