GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode-1/algorithms/python/PartitionList/partition.py at master · swangcu/leetcode-1 Expand file tree/ Copy pathpartition.pyMore file actions 14 lines (14 loc) · 325 Bytes / Copy pathpartition.pyFile metadata and controls14 lines (14 loc) · 325 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 def partition(self, head, x): h1 = l1 = ListNode(0) h2 = l2 = ListNode(0) while head: if head.val < x: l1.next = head l1 = l1.next else: l2.next = head l2 = l2.next head = head.next l2.next = None l1.next = h2.next return h1.next |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |