August 2nd, 2012, 06:22 PM
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:
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.
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!