Tag Archives: csharp

Check for repeated characters: csharp

/// Checks for repeated characters /// Author: http://www.victorbyte.net /// returns Boolean value static bool hasDuplicate(string str) { for (int i = 0; i < str.Length; i++) { for (int j = i + 1; j < str.Length; j++) { if … Continue reading

Posted in Code samples | Tagged , | Leave a comment