comefrom: <garvit244>234_1.py
code: def isPalindrome( head):
      rev = None
      slow, fast = head, head.next
      while fast and fast.next:
          fast = fast.next.next
          temp = slow
          slow = slow.next
          temp.next = rev
          rev = temp
      
      if fast:
          slow = slow.next
      
      while rev and rev.val == slow.val:
          rev = rev.next
          slow = slow.next
      return not rev
masked: def sample_funcname ( var_0 ) :
      var_1 = None
      var_2 , var_3 = var_0 , var_0.next
      while var_3 and var_3.next :
          var_3 = var_3.next.next
          var_4 = var_2
          var_2 = var_2.next
          var_4.next = var_1
          var_1 = var_4
      if var_3 :
          var_2 = var_2.next
      while var_1 and var_1.val == var_2.val :
          var_1 = var_1.next
          var_2 = var_2.next
      return not var_1
  