comefrom: <garvit244>128_1.py
code: def longestConsecutive( nums):
      result = 0
      nums = set(nums)
      
      for num in nums:
          if num-1 not in nums:
              curr = num
              length = 1
      
              while curr+1 in nums:
                  curr += 1
                  length += 1
              result = max(result, length)
      return result
masked: def sample_funcname ( var_0 ) :
      var_1 = 0
      var_0 = set ( var_0 )
      for var_2 in var_0 :
          if var_2 - 1 not in var_0 :
              var_3 = var_2
              var_4 = 1
              while var_3 + 1 in var_0 :
                  var_3 += 1
                  var_4 += 1
              var_1 = max ( var_1 , var_4 )
      return var_1
  