0
votes
3answers
253 views

Optimizing function that searches for binary patterns [duplicate]

Possible Duplicate: Optimizing function that searches for binary patterns I have two functions that calculate whether or not a given coordinate (x, y) is a diagonal or anti-diagonal of ...
3
votes
2answers
184 views

Improving the efficiency and design of my number guessing game

I have just written a solution to the following problem: we all know the classic "guessing game" with higher or lower prompts. lets do a role reversal; you create a program that will guess ...
1
vote
2answers
2k views

Generic binary search

I have the following code for binary search using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Diagnostics; namespace ...