comefrom: <garvit244>1028_1.py
code: def longestArithSeqLength( A):
      from collections import defaultdict
      
      dp = defaultdict(int)
      for index_i in range(len(A)):
          for index_j in range(index_i):
              diff = A[index_i] - A[index_j]
              dp[(index_i, diff)] = max(dp[(index_i, diff)], dp[(index_j, diff)]+1)
      return max(dp.itervalues())+1
masked: def sample_funcname ( var_0 ) :
      from var_1 import var_2
      var_4 = var_2 ( int )
      for var_7 in range ( len ( var_0 ) ) :
          for var_8 in range ( var_7 ) :
              var_9 = var_0 [ var_7 ] - var_0 [ var_8 ]
              var_4 [ ( var_7 , var_9 ) ] = max ( var_4 [ ( var_7 , var_9 ) ] , var_4 [ ( var_8 , var_9 ) ] + 1 )
      return max ( var_4.itervalues ( ) ) + 1
  