-
August 2nd, 2012, 06:22 PM
#1
Finding all elements between two in a list
I am used to using STL in C++ and kind of dabbling with C-sharp right now. So, I have a sorted array and I want to find all elements between two given quantities.
I have the following:
key,value
11,22
13,26
15,30
17,34
19,38 ,etc.
I want to extract all elements whose key is between 12 and 16 i.e. I want to extract 26 and30 since their key 13 and 15 is between 12 and 16. In C++ I would have used STL maps to easily do this. How do Ido this in c-sharp.
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|