title: Count Number Binary Strings Without Consecutive 1S
signature: function count_number_binary_strings_without_consecutive_1s(n)
source_py: def count_number_binary_strings_without_consecutive_1s(n):
      a = [0 for i in range(n)]
      b = [0 for i in range(n)]
      a[0] = b[0] = 1
      for i in range(1, n):
          a[i] = (a[(i - 1)] + b[(i - 1)])
          b[i] = a[(i - 1)]
      return (a[(n - 1)] + b[(n - 1)])
source_cpp: int count_number_binary_strings_without_consecutive_1s(int n) {
    int a [ n ], b [ n ];
    a [ 0 ] = b [ 0 ] = 1;
    for ( int i = 1;
    i < n;
    i ++ ) {
      a [ i ] = a [ i - 1 ] + b [ i - 1 ];
      b [ i ] = a [ i - 1 ];
    }
    return a [ n - 1 ] + b [ n - 1 ];
  }
question_info.entry_fn_name: count_number_binary_strings_without_consecutive_1s
question_info.entry_cls_name: Solution
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7']
question_info.test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(n, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(n) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(75, 5527939700884757)
      print(string.format("TEST-0...%s",result))
  
      result = driver(14, 987)
      print(string.format("TEST-1...%s",result))
  
      result = driver(5, 13)
      print(string.format("TEST-2...%s",result))
  
      result = driver(41, 433494437)
      print(string.format("TEST-3...%s",result))
  
      result = driver(35, 24157817)
      print(string.format("TEST-4...%s",result))
  
      result = driver(30, 2178309)
      print(string.format("TEST-5...%s",result))
  
      result = driver(84, 420196140727489673)
      print(string.format("TEST-6...%s",result))
  
      result = driver(53, 139583862445)
      print(string.format("TEST-7...%s",result))
  
  end
  
  main()
question_info.test_list: [{"idx": 0, "outputs": 5527939700884757, "inputs": {"n": 75}}, {"idx": 1, "outputs": 987, "inputs": {"n": 14}}, {"idx": 2, "outputs": 13, "inputs": {"n": 5}}, {"idx": 3, "outputs": 433494437, "inputs": {"n": 41}}, {"idx": 4, "outputs": 24157817, "inputs": {"n": 35}}, {"idx": 5, "outputs": 2178309, "inputs": {"n": 30}}, {"idx": 6, "outputs": 420196140727489673, "inputs": {"n": 84}}, {"idx": 7, "outputs": 139583862445, "inputs": {"n": 53}}]