© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
20 replies
deathsangel1234

❔ How do I search through a list for the first missing value in a range of numbers?

For instance; a list of
0, 1, 2, 4, 5, 6, 7, 9
0, 1, 2, 4, 5, 6, 7, 9
would return 3 if you're looking for the first "missing" value.
Likewise, a list of
1, 2, 4, 5, 6, 7, 9
1, 2, 4, 5, 6, 7, 9
would return 0.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

how to search for a value in a list
C#CC# / help
4y ago
Search object Inner list for value
C#CC# / help
15mo ago
❔ How would I go about looping through a json file and search for the highest value in a category?
C#CC# / help
3y ago
❔ ✅ Missing a first element of the output
C#CC# / help
3y ago