title: Padovan Sequence
signature: class Solution {
  
      public Long padovanSequence(Integer n) {
source_py: def padovan_sequence(n):
      (pPrevPrev, pPrev, pCurr, pNext) = (1, 1, 1, 1)
      for i in range(3, (n + 1)):
          pNext = (pPrevPrev + pPrev)
          pPrevPrev = pPrev
          pPrev = pCurr
          pCurr = pNext
      return pNext
source_cpp: int padovan_sequence(int n) {
    int pPrevPrev = 1, pPrev = 1, pCurr = 1, pNext = 1;
    for ( int i = 3;
    i <= n;
    i ++ ) {
      pNext = pPrevPrev + pPrev;
      pPrevPrev = pPrev;
      pPrev = pCurr;
      pCurr = pNext;
    }
    return pNext;
  }
question_info.extension: java
question_info.entry_fn_name: padovanSequence
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 1, "inputs": {"n": 1}}, {"idx": 1, "outputs": 124155792775, "inputs": {"n": 92}}, {"idx": 2, "outputs": 2513, "inputs": {"n": 29}}, {"idx": 3, "outputs": 1618192, "inputs": {"n": 52}}, {"idx": 4, "outputs": 3761840, "inputs": {"n": 55}}, {"idx": 5, "outputs": 28, "inputs": {"n": 13}}, {"idx": 6, "outputs": 9882257736, "inputs": {"n": 83}}, {"idx": 7, "outputs": 9882257736, "inputs": {"n": 83}}, {"idx": 8, "outputs": 12, "inputs": {"n": 10}}, {"idx": 9, "outputs": 109870576, "inputs": {"n": 67}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer n, Long expected){
          try{
              Driver driver = new Driver();
              if (driver.run(n,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(1, 1L);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(92, 124155792775L);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(29, 2513L);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(52, 1618192L);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(55, 3761840L);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(13, 28L);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(83, 9882257736L);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(83, 9882257736L);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(10, 12L);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(67, 109870576L);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer n, Long expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(Long actual, Long expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__