re: Daily Coding Puzzles - Nov 4th - Nov 9th VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Monday Number Drills: Blue and red marbles (8 KYU): You've decided to write a function, guess_blue() to help automatically calculate whether you...
 
function guessBlue(blueStart, redStart, bluePulled, redPulled) {
  let currentBlue = blueStart - bluePulled;
  let currentRed = redStart - redPulled;
  return currentBlue / (currentBlue + currentRed);
}

code of conduct - report abuse