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_2 = None
      var_3 , var_5 = var_0 , var_0.next
      while var_5 and var_5.next :
          var_5 = var_5.next.next
          var_6 = var_3
          var_3 = var_3.next
          var_6.next = var_2
          var_2 = var_6
      if var_5 :
          var_3 = var_3.next
      while var_2 and var_2.val == var_3.val :
          var_2 = var_2.next
          var_3 = var_3.next
      return not var_2
  