Now&Here
leetcode5 Longest Palindromic Substring

leetcode#5 Longest Palindromic Substring

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.

leetcode237 Delete Node in a Linked List

leetcode#237 Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.

leetcode234 Palindrome Linked List

leetcode#234 Palindrome Linked List

Given a singly linked list, determine if it is a palindrome.

leetcode203 Remove Linked List Elements

leetcode#203 Remove Linked List Elements

Remove all elements from a linked list of integers that have value val.

leetcode206 Reverse Linked List

leetcode#206 Reverse Linked List

Reverse a singly linked list.

leetcode160 Intersection of Two Linked Lists

leetcode#160 Intersection of Two Linked Lists

Write a program to find the node at which the intersection of two singly linked lists begins.

leetcode142 Linked List Cycle II

leetcode#142 Linked List Cycle II

Given a linked list, return the node where the cycle begins. If there is no cycle, return null.

leetcode141 Linked List Cycle

leetcode#141 Linked List Cycle

Given a linked list, determine if it has a cycle in it.

leetcode82 Remove Duplicates from Sorted List II

leetcode#82 Remove Duplicates from Sorted List II

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.

leetcode83 Remove Duplicates from Sorted List & VS leetcode#21

leetcode#83 Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once.