自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 [leetcode 104]Maximum Depth of Binary Tree

Question:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.Code:主要是边界判断/** * De...

2016-06-24 00:08:00 84

转载 【mybatis】返回值为Map时,泛型的问题

dao层示例如下:public interface DemoDao { Map<String,String> getUserInfo();}mybatis的xml查询语句如下:select userid as userid, username as usernamefrom user ;假设数据库中,userid 为 intege...

2016-06-22 23:22:00 1392

转载 [leetcode 258]Add Digits

Question:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has...

2016-06-17 00:06:00 76

转载 [leetcode 292]Nim Game

Question:You are playing the following Nim Game with your friend:There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones.The one who removes the last st...

2016-06-16 00:18:00 83

转载 [leetcode 334]Reverse String.md

Question:Write a function that takes a string as input and returns the string reversed.Example:Given s = "hello", return "olleh".Code:Here is Java:public class Solution { public Strin...

2016-06-14 23:46:00 98

转载 [leetcode 001]Two Sum

Question:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.ExampleGiven n...

2016-06-06 00:20:00 47

空空如也

空空如也

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

TA关注的人

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