141.Linked List Cycle

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

There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, is used to denote the index of the node that tail’s next pointer is connected to. Note that is not passed as a parameter.

Read more »

136.Single Number

Given a non-empty array of integers , every element appears twice except for one. Find that single one.

You must implement a solution with a linear runtime complexity and use only constant extra space.

Read more »

125.Valid Palindrome
A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers.

Given a string , return if it is a palindrome, or otherwise.

Example 1:

Read more »