Click here to Skip to main content
15,850,753 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Text to Speech Pin
Bernhard Hiller2-Jan-17 22:27
Bernhard Hiller2-Jan-17 22:27 
QuestionXml Serialization of List<T> Pin
Richard Andrew x642-Jan-17 7:18
professionalRichard Andrew x642-Jan-17 7:18 
AnswerRe: Xml Serialization of List<T> Pin
Eddy Vluggen2-Jan-17 7:37
professionalEddy Vluggen2-Jan-17 7:37 
GeneralRe: Xml Serialization of List<T> Pin
Richard Andrew x642-Jan-17 9:12
professionalRichard Andrew x642-Jan-17 9:12 
GeneralRe: Xml Serialization of List<T> Pin
Pete O'Hanlon3-Jan-17 5:51
subeditorPete O'Hanlon3-Jan-17 5:51 
Questionwrite acode Pin
Member 129308832-Jan-17 1:48
Member 129308832-Jan-17 1:48 
AnswerRe: write acode Pin
Jochen Arndt2-Jan-17 1:57
professionalJochen Arndt2-Jan-17 1:57 
AnswerRe: write acode Pin
OriginalGriff2-Jan-17 2:00
mveOriginalGriff2-Jan-17 2:00 
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
But without giving you any code, I'll tell you how I'd do it: I'd create a struct to hold each distinct value and a sorted list of indexes in the array. I'd then fill out a collection of such structs - one for each distinct value in the array - and traverse the collection when complete to find the largest difference in indexes.

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

AnswerRe: write acode Pin
Patrice T2-Jan-17 13:45
mvePatrice T2-Jan-17 13:45 
QuestionSentiment Analysis Pin
Member 1287504731-Dec-16 6:13
Member 1287504731-Dec-16 6:13 
AnswerRe: Sentiment Analysis Pin
OriginalGriff31-Dec-16 6:41
mveOriginalGriff31-Dec-16 6:41 
AnswerRe: Sentiment Analysis Pin
Gerry Schmitz31-Dec-16 8:18
mveGerry Schmitz31-Dec-16 8:18 
AnswerRe: Sentiment Analysis Pin
Pete O'Hanlon31-Dec-16 8:38
subeditorPete O'Hanlon31-Dec-16 8:38 
AnswerRe: Sentiment Analysis Pin
Patrice T1-Jan-17 7:10
mvePatrice T1-Jan-17 7:10 
QuestionScroollbar thumb Y position C# Pin
didielf30-Dec-16 20:57
professionaldidielf30-Dec-16 20:57 
QuestionRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan30-Dec-16 22:03
mveRichard MacCutchan30-Dec-16 22:03 
AnswerRe: Scroollbar thumb Y position C# Pin
didielf30-Dec-16 22:49
professionaldidielf30-Dec-16 22:49 
QuestionRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan30-Dec-16 23:36
mveRichard MacCutchan30-Dec-16 23:36 
AnswerRe: Scroollbar thumb Y position C# Pin
didielf30-Dec-16 23:43
professionaldidielf30-Dec-16 23:43 
GeneralRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan31-Dec-16 0:38
mveRichard MacCutchan31-Dec-16 0:38 
GeneralRe: Scroollbar thumb Y position C# Pin
didielf31-Dec-16 8:52
professionaldidielf31-Dec-16 8:52 
GeneralRe: Scroollbar thumb Y position C# Pin
Luc Pattyn31-Dec-16 2:51
sitebuilderLuc Pattyn31-Dec-16 2:51 
GeneralRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan31-Dec-16 3:03
mveRichard MacCutchan31-Dec-16 3:03 
GeneralRe: Scroollbar thumb Y position C# Pin
Luc Pattyn31-Dec-16 3:08
sitebuilderLuc Pattyn31-Dec-16 3:08 
GeneralRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan31-Dec-16 3:20
mveRichard MacCutchan31-Dec-16 3:20 

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.