Click here to Skip to main content
15,902,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get "Input string was not in a correct format" exception when calling OdbcConnection's getSchema("Columns") for Oracle 9i database Pin
stilz10-Feb-09 8:53
stilz10-Feb-09 8:53 
GeneralRe: Get "Input string was not in a correct format" exception when calling OdbcConnection's getSchema("Columns") for Oracle 9i database Pin
Wendelius10-Feb-09 9:06
mentorWendelius10-Feb-09 9:06 
GeneralRe: Get "Input string was not in a correct format" exception when calling OdbcConnection's getSchema("Columns") for Oracle 9i database Pin
stilz11-Feb-09 10:06
stilz11-Feb-09 10:06 
GeneralRe: Get "Input string was not in a correct format" exception when calling OdbcConnection's getSchema("Columns") for Oracle 9i database Pin
Wendelius19-Feb-09 8:23
mentorWendelius19-Feb-09 8:23 
Questionhide tooltip Pin
netJP12L10-Feb-09 8:03
netJP12L10-Feb-09 8:03 
QuestionString issue.. Pin
ventomito10-Feb-09 7:09
ventomito10-Feb-09 7:09 
AnswerRe: String issue.. Pin
Ennis Ray Lynch, Jr.10-Feb-09 7:14
Ennis Ray Lynch, Jr.10-Feb-09 7:14 
AnswerRe: String issue.. Pin
Luc Pattyn10-Feb-09 7:16
sitebuilderLuc Pattyn10-Feb-09 7:16 
Hi,

this would be my attempt:
- strip all redundant characters from each string, probably every non-letter;
- optionally: normalize the casing, say convert all strings to lower-case;
- collect the strings in a List<string>, however before adding them, check whether the new string
is already present; if so you found a duplicate.
(you can improve on this by using a Dictionary which holds the string as a key, and the occurence
count as an int value).

BTW: why ask for an algorithm in a language oriented forum that does not match your language?
we do have a "Math and algorithms" forum.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Friday, June 10, 2011 11:38 PM

GeneralRe: String issue.. Pin
Ravadre10-Feb-09 7:19
Ravadre10-Feb-09 7:19 
AnswerRe: String issue.. Pin
Luc Pattyn10-Feb-09 7:21
sitebuilderLuc Pattyn10-Feb-09 7:21 
AnswerRe: String issue.. Pin
lawrenceinba10-Feb-09 19:11
lawrenceinba10-Feb-09 19:11 
GeneralRe: String issue.. Pin
ventomito11-Feb-09 4:37
ventomito11-Feb-09 4:37 
QuestionURL holder for a web crawler. Pin
emmmatty110-Feb-09 6:34
emmmatty110-Feb-09 6:34 
AnswerRe: URL holder for a web crawler. Pin
musefan10-Feb-09 6:49
musefan10-Feb-09 6:49 
QuestionNeed Help getting bits from bytes. Pin
Muratus10-Feb-09 6:34
Muratus10-Feb-09 6:34 
AnswerRe: Need Help getting bits from bytes. Pin
musefan10-Feb-09 6:48
musefan10-Feb-09 6:48 
AnswerRe: Need Help getting bits from bytes. Pin
Ennis Ray Lynch, Jr.10-Feb-09 7:12
Ennis Ray Lynch, Jr.10-Feb-09 7:12 
AnswerRe: Need Help getting bits from bytes. Pin
Ravadre10-Feb-09 7:15
Ravadre10-Feb-09 7:15 
GeneralRe: Need Help getting bits from bytes. [modified] Pin
Muratus10-Feb-09 7:40
Muratus10-Feb-09 7:40 
GeneralRe: Need Help getting bits from bytes. Pin
Ravadre10-Feb-09 9:24
Ravadre10-Feb-09 9:24 
GeneralRe: Need Help getting bits from bytes. Pin
Muratus10-Feb-09 9:56
Muratus10-Feb-09 9:56 
GeneralRe: Need Help getting bits from bytes. Pin
Ravadre10-Feb-09 10:14
Ravadre10-Feb-09 10:14 
GeneralRe: Need Help getting bits from bytes. Pin
Muratus10-Feb-09 10:53
Muratus10-Feb-09 10:53 
AnswerRe: Need Help getting bits from bytes. [modified] Pin
#realJSOP10-Feb-09 9:59
professional#realJSOP10-Feb-09 9:59 
AnswerRe: Need Help getting bits from bytes. Pin
Alan N10-Feb-09 14:59
Alan N10-Feb-09 14:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.