Click here to Skip to main content
15,798,037 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:16
subeditorPete O'Hanlon5-Nov-12 23:16 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:27
Abrek Okur5-Nov-12 23:27 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:36
subeditorPete O'Hanlon5-Nov-12 23:36 
AnswerRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:53
Abrek Okur5-Nov-12 23:53 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon6-Nov-12 0:00
subeditorPete O'Hanlon6-Nov-12 0:00 
GeneralRe: Mathematical Question Pin
lukeer5-Nov-12 23:47
lukeer5-Nov-12 23:47 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:51
Abrek Okur5-Nov-12 23:51 
GeneralRe: Mathematical Question Pin
lukeer6-Nov-12 0:47
lukeer6-Nov-12 0:47 
<quote>we have to plus?
Actually we have to subtract: Steps = Max - Min
In case Min is less than zero, this evolves in a doulbe-minus if we write the actual numbers down. But you don't have to worry about that if you leave the computation to a machine. Just tell it to "Max - Min" and it will take care of the sign on its own.

Question was for the step count. Number of possible positions is (stepCount + 1).
 +---+---+---+---+---+---+---+
-3  -2  -1   0   1   2   3   4

stepCount = 4 - (-3) = 7
positionCount = stepCount + 1 = 8


Ciao,


luker

QuestionRe: Mathematical Question Pin
n.podbielski5-Nov-12 23:06
n.podbielski5-Nov-12 23:06 
AnswerRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:13
subeditorPete O'Hanlon5-Nov-12 23:13 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:15
Abrek Okur5-Nov-12 23:15 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:17
subeditorPete O'Hanlon5-Nov-12 23:17 
GeneralRe: Mathematical Question Pin
n.podbielski5-Nov-12 23:43
n.podbielski5-Nov-12 23:43 
AnswerRe: Mathematical Question Pin
Ingo6-Nov-12 5:56
Ingo6-Nov-12 5:56 
QuestionAssigning Variables in C# for ORACLE Pin
KingJames065-Nov-12 20:52
KingJames065-Nov-12 20:52 
AnswerRe: Assigning Variables in C# for ORACLE Pin
Abhinav S5-Nov-12 22:16
Abhinav S5-Nov-12 22:16 
GeneralRe: Assigning Variables in C# for ORACLE Pin
KingJames065-Nov-12 23:13
KingJames065-Nov-12 23:13 
GeneralRe: Assigning Variables in C# for ORACLE Pin
Eddy Vluggen6-Nov-12 0:45
professionalEddy Vluggen6-Nov-12 0:45 
GeneralRe: Assigning Variables in C# for ORACLE Pin
KingJames066-Nov-12 15:38
KingJames066-Nov-12 15:38 
GeneralRe: Assigning Variables in C# for ORACLE Pin
Eddy Vluggen6-Nov-12 23:45
professionalEddy Vluggen6-Nov-12 23:45 
QuestionC#, Win'7, Port Mystery Pin
C-P-User-35-Nov-12 13:49
C-P-User-35-Nov-12 13:49 
AnswerRe: C#, Win'7, Port Mystery Pin
Pete O'Hanlon5-Nov-12 23:18
subeditorPete O'Hanlon5-Nov-12 23:18 
GeneralRe: C#, Win'7, Port Mystery Pin
C-P-User-36-Nov-12 7:03
C-P-User-36-Nov-12 7:03 
QuestionReading XML Pin
Kevin Marois5-Nov-12 8:34
professionalKevin Marois5-Nov-12 8:34 
AnswerRe: Reading XML Pin
Eddy Vluggen5-Nov-12 9:25
professionalEddy Vluggen5-Nov-12 9:25 

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.