LeetCode-Copy List with Random Pointer

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null

2019-05-28 · 2 分钟

LeetCode – Flatten a Multilevel Doubly Linked List

You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a separate…

2019-05-20 · 1 分钟

LeetCode - Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: Input: 1-…

2019-05-12 · 1 分钟

LeetCode – Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes

2019-05-12 · 2 分钟

LeetCode - Design Linked List

Photo by Tim Swaan on Unsplash

2019-04-30 · 2 分钟

LeetCode - Palindrome Linked List

Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: Follow up: Could you do it in O(n) time and O(1) space? 找到中间节点后反转判断节点回文

2019-04-27 · 1 分钟

LeetCode - Find Pivot Index

Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of the…

2019-04-22 · 1 分钟