- 博客(4)
- 收藏
- 关注
原创 [Leetcode]Verify Preorder Serialization of a Binary Tree
One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as #.
2016-03-15 18:51:00 308
原创 [Leetcode]Longest Increasing Path in a Matrix
Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or down. You may NOT move diagonally or move outside o
2016-03-14 14:49:11 331
原创 [Leetcode]Sudoku Solver
Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. A sudoku puzzle.
2016-03-10 19:42:23 279
原创 [Leetcode]Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is
2016-03-09 22:40:57 319
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人