原创 【Leetcode】Path Sum

題目: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values a

原创 【Leetcode】Climbing Stairs

題目: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps

原创 【Leetcode】Symmetric Tree

題目: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this

原创 【Leetcode】Word Ladder II

題目: Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end

原创 【Leetcode】Balanced Binary Tree

題目: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defi

原创 【Leetcode】Remove Duplicates from Sorted List

題目: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1-

原创 【Leetcode】Valid Palindrome

題目: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Fo

原创 【Leetcode】Valid Sudoku

題目: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially fi

原创 【Leetcode】Word Ladder

題目: Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start

原创 【Leetcode】Maximum Depth of Binary Tree

題目: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path fro

原创 【Leetcode】Search in Rotated Sorted Array II

題目: Follow up for "Search in Rotated Sorted Array": What if duplicates ar

原创 【Leetcode】Plus One

題目: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored suc

原创 【Leetcode】Remove Nth Node From End of List

題目: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked

原创 【Leetcode】Swap Nodes in Pairs

題目: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you shoul

原创 【Leetcode】Valid Number

題目: Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10