title: Maximize Volume Cuboid Given Sum Sides 1
signature: class Solution {
  
      public Integer maximizeVolumeCuboidGivenSumSides1(Integer s) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer s, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(s,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(8, 18);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(96, 32768);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(96, 32768);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(96, 32768);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(12, 64);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(95, 31744);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(72, 13824);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(81, 19683);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(42, 2744);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(13, 81);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer s, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(s),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def maximize_volume_cuboid_given_sum_sides_1(s):
      length = int((s / 3))
      s -= length
      breadth = (s / 2)
      height = (s - breadth)
      return int(((length * breadth) * height))
source_cpp: int maximize_volume_cuboid_given_sum_sides_1(int s) {
    int length = s / 3;
    s -= length;
    int breadth = s / 2;
    int height = s - breadth;
    return length * breadth * height;
  }