Click here to Skip to main content
15,888,351 members

Articles by ZamirF (Tip/Tricks: 2)

Tip/Tricks: 2

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.00

General Programming
Algorithms
11 Feb 2011   Updated: 11 Feb 2011   Rating: 4.50/5    Votes: 2   Popularity: 1.35
Licence: CPOL    Views: 7,881     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Can we simplify it by: (This essentially passes only two numbers). public int GCD(int value1, int value2){ int max = 0; bool gcdFound = false; int counter = 1; //Make sure both numbers are atleast 2 or above if (( value1 <= 1 ) || (value2 <= 1)) return...
Programming Languages
C#
25 Nov 2010   Updated: 26 Nov 2010   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 5,160     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
This line:ADOX.CatalogClass cat = new ADOX.CatalogClass();may not work if you are using C# 4.0+You will needADOX.Catalog cat = new ADOX.Catalog();For a completed method checkout:http://zamirsblog.blogspot.com/2010/11/creating-access-database.html[^]
3 Feb 2011   Updated: 6 Feb 2011   Rating: 3.50/5    Votes: 4   Popularity: 2.11
Licence: CPOL    Views: 12,020     Bookmarked: 1   Downloaded: 6
Please Sign up or sign in to vote.
How about:public bool IsPalindrome(string stringToCheck){ char[] rev = stringToCheck.Reverse().ToArray(); return (stringToCheck.Equals(new string(rev), StringComparison.OrdinalIgnoreCase));}

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.