|
-
Dec 12th, 2011, 10:45 PM
#16
Re: Help with arrays, ArguementOutOfRangeExceptin was unhandled.
Classes can sure suck some times.
So, how do you mean to insert code 2 into code 1? Both of them appear to be a series of methods. In the first snippet, there would be no reason to remove empties from the sum (they make no difference), nor do you really need to remove them from the mean (you'd just leave them out when counting the number of elements). Do you need to remove them for the binary search? That doesn't seem necessary, since the array would be sorted, and it wouldn't really matter whether there were some 0s in the array.
My usual boring signature: Nothing
 
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
|