自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

转载 【Leetcode】Longest Palindrome Substring

【题目】Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 【题解】 Mana

2014-11-29 11:25:48 409

原创 【Leetcode】Reverse word in a string

【题目】 Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". click to show clarification. Clarification: What con

2014-11-27 23:28:33 552

转载 【知识点】树的遍历

【树的定义】 public class TreeNode{ int val; TreeNode left; TreeNode right; TreeNode(int x){ val=x; } } 【前序遍历】 递归: public void preOrder(TreeNodebiTree){ System.out.printf(biTree.val+""); TreeNode leftTr

2014-11-26 16:36:27 471

原创 【Leetcode】Convert Sorted List to Binary Search Tree

【题目】Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 【思路】这道题目就和array不一样,因为是linkedlist所以,不能随意访问到中间的元素,那么就只能一步一步从头开始顺序访问,从列表到BST,我们能感受到构

2014-11-26 12:59:59 293

原创 【LeetCode】Convert Sorted Array to Binary Search Tree

leetcode

2014-11-26 11:05:06 284

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除