Click here to Skip to main content
16,020,114 members
Home / Discussions / C#
   

C#

 
GeneralRe: Count the unique number of words inside a string builder(Not letters...Words)) Pin
Eddy Vluggen18-Apr-13 10:04
professionalEddy Vluggen18-Apr-13 10:04 
GeneralRe: Count the unique number of words inside a string builder(Not letters...Words)) Pin
Jasmine250118-Apr-13 11:34
Jasmine250118-Apr-13 11:34 
GeneralRe: Count the unique number of words inside a string builder(Not letters...Words)) Pin
Eddy Vluggen18-Apr-13 11:43
professionalEddy Vluggen18-Apr-13 11:43 
GeneralRe: Count the unique number of words inside a string builder(Not letters...Words)) Pin
Jasmine250118-Apr-13 11:54
Jasmine250118-Apr-13 11:54 
AnswerRe: Count the unique number of words inside a string builder(Not letters...Words)) Pin
PIEBALDconsult18-Apr-13 17:51
mvePIEBALDconsult18-Apr-13 17:51 
AnswerRe: Count the unique number of words inside a string builder(Not letters...Words)) Pin
Marc Clifton19-Apr-13 14:25
mvaMarc Clifton19-Apr-13 14:25 
GeneralOptimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 2:33
professionalMax Holder18-Apr-13 2:33 
GeneralRe: Optimizing Fibonacci Calculation Pin
OriginalGriff18-Apr-13 2:51
mveOriginalGriff18-Apr-13 2:51 
Yes.
Precalculate the values. Since you are only working with 200 items, run your existing code to output the list of values into a text file, then add those values as an array:
C#
private static ulong[] fibValues = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...};
Then your routine is just a limit test and an array access.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 2:53
professionalMax Holder18-Apr-13 2:53 
GeneralRe: Optimizing Fibonacci Calculation Pin
OriginalGriff18-Apr-13 2:57
mveOriginalGriff18-Apr-13 2:57 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 2:59
professionalMax Holder18-Apr-13 2:59 
AnswerRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 3:06
mvaKenneth Haugland18-Apr-13 3:06 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 3:14
professionalMax Holder18-Apr-13 3:14 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 3:23
mvaKenneth Haugland18-Apr-13 3:23 
AnswerRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 3:51
mvaKenneth Haugland18-Apr-13 3:51 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 3:57
professionalMax Holder18-Apr-13 3:57 
QuestionRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 4:08
mvaKenneth Haugland18-Apr-13 4:08 
AnswerRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 4:10
professionalMax Holder18-Apr-13 4:10 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 4:16
mvaKenneth Haugland18-Apr-13 4:16 
GeneralRe: Optimizing Fibonacci Calculation Pin
Richard Deeming18-Apr-13 4:23
mveRichard Deeming18-Apr-13 4:23 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 4:26
mvaKenneth Haugland18-Apr-13 4:26 
GeneralRe: Optimizing Fibonacci Calculation Pin
Richard Deeming18-Apr-13 5:05
mveRichard Deeming18-Apr-13 5:05 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 5:14
mvaKenneth Haugland18-Apr-13 5:14 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 5:02
professionalMax Holder18-Apr-13 5:02 
GeneralRe: Optimizing Fibonacci Calculation Pin
Jasmine250118-Apr-13 6:38
Jasmine250118-Apr-13 6:38 

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.