Code Mafia: Interest Gauge.
-
-
Frozen Angel SheQueen ShiftyShe
- Queen Shifty
- Queen Shifty
- Posts: 18753
- Joined: October 26, 2015
- Pronoun: She
I will play this surely!False tears bring pain to those around you
False smile brings pain to one's self
"Frozen Like Your Heart." -Ginngie-
-
Frozen Angel SheQueen ShiftyShe
- Queen Shifty
- Queen Shifty
- Posts: 18753
- Joined: October 26, 2015
- Pronoun: She
I'm not a Python developer but I think it must be "=="
and "is" is not equality checker. its identity checker like ".equals()" in java.
I supposeFalse tears bring pain to those around you
False smile brings pain to one's self
"Frozen Like Your Heart." -Ginngie-
-
Frozen Angel SheQueen ShiftyShe
- Queen Shifty
- Queen Shifty
- Posts: 18753
- Joined: October 26, 2015
- Pronoun: She
Lets not get satisfied with Python this is java
Code: Select all
static public int diffrenseMinMax ( int[] input){ int min = input[0]; int max = input[0]; for(int i=1;i< input.length;i++){ if(input[i]<min) min = input[i]; if(input[i]>max) max = input[i]; } return max-min; }
False tears bring pain to those around you
False smile brings pain to one's self
"Frozen Like Your Heart." -Ginngie-
-
Frozen Angel SheQueen ShiftyShe
- Queen Shifty
- Queen Shifty
- Posts: 18753
- Joined: October 26, 2015
- Pronoun: She
In post 47, Thestatusquo wrote:I don't think continuing to post and answer code challenges is really consistent with the purpose of this thread or the forum its in, though.
Probably should make a new thread somewhere if you want to keep doing that.
okFalse tears bring pain to those around you
False smile brings pain to one's self
"Frozen Like Your Heart." -Ginngie-
-
Frozen Angel SheQueen ShiftyShe
- Queen Shifty
- Queen Shifty
- Posts: 18753
- Joined: October 26, 2015
- Pronoun: She
I'm up for code challenges if there is going to be more. Just take it to the next level please ! I can post crazy challenges myself. we may start a mish mash section for just challenges ?False tears bring pain to those around you
False smile brings pain to one's self
"Frozen Like Your Heart." -Ginngie-
-
Frozen Angel SheQueen ShiftyShe
- Queen Shifty
- Queen Shifty
- Posts: 18753
- Joined: October 26, 2015
- Pronoun: She
In post 62, zakk wrote:No need to write a ton of code for this
The question wants an optimized way to find it - not using a pre programmed sort function for finding min / max. using the original min max function was better than that from this perspective.False tears bring pain to those around you
False smile brings pain to one's self
"Frozen Like Your Heart." -Ginngie-
-
Frozen Angel SheQueen ShiftyShe
- Queen Shifty
- Queen Shifty
- Posts: 18753
- Joined: October 26, 2015
- Pronoun: She
Thats what the rest of us did yeah (and there is a better way for your starting point (see my code up there for example)False tears bring pain to those around you
False smile brings pain to one's self
"Frozen Like Your Heart." -Ginngie
Copyright © MafiaScum. All rights reserved.