|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
word length occurance in a text..Write the code in best possible way c# for giving out put the maximum
number of time the same word length occurs.the text might contain . , to seperate word too.. Eg INPUT TEXT : "This text is test sample.Text lenght that occurs maximum time. OUT PUT : Word with length :4 Maximum occured :6 What is it that you need help with? Do you have problem understanding
your school assignmnet? amit.sin***@gmail.com wrote: Show quoteHide quote > Write the code in best possible way c# for giving out put the maximum > number of time the same word length occurs.the text might contain . , > to seperate word too.. > > Eg INPUT TEXT : "This text is test sample.Text lenght that occurs > maximum time. > > OUT PUT : Word with length :4 Maximum occured :6 > It is nothing as such i have solved the problem asked in interview but
i wud like the best way as i feel i have unessary used lot of loops to find the result Göran Andersson wrote: Show quoteHide quote > What is it that you need help with? Do you have problem understanding > your school assignmnet? > > > amit.sin***@gmail.com wrote: > > Write the code in best possible way c# for giving out put the maximum > > number of time the same word length occurs.the text might contain . , > > to seperate word too.. > > > > Eg INPUT TEXT : "This text is test sample.Text lenght that occurs > > maximum time. > > > > OUT PUT : Word with length :4 Maximum occured :6 > > Amit,
We try not to give C# samples in this newsgroup. Try for that the newsgroup microsoft.dotnet.languages.csharp Cor <amit.sin***@gmail.com> schreef in bericht news:1159348041.026549.63440@e3g2000cwe.googlegroups.com... It is nothing as such i have solved the problem asked in interview buti wud like the best way as i feel i have unessary used lot of loops to find the result Göran Andersson wrote: Show quoteHide quote > What is it that you need help with? Do you have problem understanding > your school assignmnet? > > > amit.sin***@gmail.com wrote: > > Write the code in best possible way c# for giving out put the maximum > > number of time the same word length occurs.the text might contain . , > > to seperate word too.. > > > > Eg INPUT TEXT : "This text is test sample.Text lenght that occurs > > maximum time. > > > > OUT PUT : Word with length :4 Maximum occured :6 > > It would be an interresting task to accomplish it without any loops at
all. I think that it can be done using a sorted dictionary, a regular expression and a custom match evaluator. Trying... Well, what do you know... The dictionary isn't needed at all, so it can be done with just a regular expression and a custom match evaluator. :) amit.sin***@gmail.com wrote: Show quoteHide quote > It is nothing as such i have solved the problem asked in interview but > i wud like the best way as i feel i have unessary used lot of loops to > find the result > > Göran Andersson wrote: >> What is it that you need help with? Do you have problem understanding >> your school assignmnet? >> >> >> amit.sin***@gmail.com wrote: >>> Write the code in best possible way c# for giving out put the maximum >>> number of time the same word length occurs.the text might contain . , >>> to seperate word too.. >>> >>> Eg INPUT TEXT : "This text is test sample.Text lenght that occurs >>> maximum time. >>> >>> OUT PUT : Word with length :4 Maximum occured :6 >>> >
check username and password in database
A question of design How to make stacktrace include linenumber for release compiles? REPLACE method: unwanted multiple-replacement Detect right-click in MDI container's client area? Encrypt a date to use in demo version System.Diagnostics.Process.Start Freezes No Recursive instr?!! RTf to Word.Doc Finding embedded controls? |
|||||||||||||||||||||||