title: Number Jump Required Given Length Reach Point Form D 0 Origin 2D Plane
signature: def numberJumpRequiredGivenLengthReachPointFormD0Origin2DPlane(a: Int, b: Int, d: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Double , expected: Double): Boolean = {
      (actual - expected).abs < 1e-09
  }
  
  def driver(a: Int, b: Int, d: Int, expected: Double): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b, d),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        35, 8, 77, 
        3.1714285714285713    
      )}")   
  
  
      println(s"TEST-1...${driver(
        85, 55, 33, 
        2.0    
      )}")   
  
  
      println(s"TEST-2...${driver(
        22, 23, 64, 
        3.739130434782609    
      )}")   
  
  
      println(s"TEST-3...${driver(
        8, 43, 29, 
        2.0    
      )}")   
  
  
      println(s"TEST-4...${driver(
        12, 64, 11, 
        2.0    
      )}")   
  
  
      println(s"TEST-5...${driver(
        58, 25, 26, 
        2.0    
      )}")   
  
  
      println(s"TEST-6...${driver(
        65, 4, 28, 
        2.0    
      )}")   
  
  
      println(s"TEST-7...${driver(
        10, 95, 55, 
        2.0    
      )}")   
  
  
      println(s"TEST-8...${driver(
        23, 13, 54, 
        3.3043478260869565    
      )}")   
  
  
      println(s"TEST-9...${driver(
        5, 50, 71, 
        2.4    
      )}")   
  
  }
  
source_py: def number_jump_required_given_length_reach_point_form_d_0_origin_2d_plane(a, b, d):
      temp = a
      a = min(a, b)
      b = max(temp, b)
      if (d >= b):
          return (((d + b) - 1) / b)
      if (d == 0):
          return 0
      if (d == a):
          return 1
      return 2
source_cpp: int number_jump_required_given_length_reach_point_form_d_0_origin_2d_plane(int a, int b, int d) {
    int temp = a;
    a = min ( a, b );
    b = max ( temp, b );
    if ( d >= b ) return ( d + b - 1 ) / b;
    if ( d == 0 ) return 0;
    if ( d == a ) return 1;
    return 2;
  }