上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321public class Solution { public int reverse(int x) { ... 阅读全文
posted @ 2015-10-04 00:41 stonehat 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2015-10-03 23:59 stonehat 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 时间限制:10000ms单点时限:1000ms内存限制:256MB描述Given a sequence {an}, how many non-empty sub-sequence of it is a prefix of fibonacci sequence.A sub-sequence is a ... 阅读全文
posted @ 2015-09-29 21:57 stonehat 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 时间限制:5000ms单点时限:1000ms内存限制:256MB描述Given a circle on a two-dimentional plane.Output theintegralpoint in or on the boundary of the circle which has the ... 阅读全文
posted @ 2015-09-29 21:56 stonehat 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 度度熊有一张网格纸,但是纸上有一些点过的点,每个点都在网格点上,若把网格看成一个坐标轴平行于网格线的坐标系的话,每个点可以用一对整数x,y来表示。度度熊必须沿着网格线画一个正方形,使所有点在正方形的内部或者边界。然后把这个正方形剪下来。问剪掉正方形的最小面积是多少。输入描述:第一行一个数n(2≤n≤... 阅读全文
posted @ 2015-09-28 15:48 stonehat 阅读(449) 评论(0) 推荐(0) 编辑
摘要: C市现在要转移一批罪犯到D市,C市有n名罪犯,按照入狱时间有顺序,另外每个罪犯有一个罪行值,值越大罪越重。现在为了方便管理,市长决定转移入狱时间连续的c名犯人,同时要求转移犯人的罪行值之和不超过t,问有多少种选择的方式?输入描述:第一行数据三个整数:n,t,c(1≤n≤2e5,0≤t≤1e9,1≤c... 阅读全文
posted @ 2015-09-28 15:32 stonehat 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 二叉树作为树的一种,是一种重要的数据结构,也是面试官经常考的东西。昨天看了一下关于树中的面试题,发现二叉树中的面试题比较常见的题型大概有下面几个:创建一颗二叉树(先序,中序,后序)、遍历一颗二叉树(先序,中序,后序和层次遍历)、求二叉树中叶子节点的个数、求二叉树的高度、求二叉树中两个节点的最近公共祖... 阅读全文
posted @ 2015-08-17 18:33 stonehat 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 1. 首先在values目录下建立attrs.xml文件,添加属性内容·在布局文件中添加新的命名空间xmlns,然后可以使用命名空间给自定义的空间设置属性attrs.xmldeclare-styleable>resources>然后在布局文件中完成:xmlns:my=http://schemas.a... 阅读全文
posted @ 2015-08-17 00:13 stonehat 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 深入了解Java的垃圾清扫算法。 阅读全文
posted @ 2015-08-16 21:31 stonehat 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 微软2016校园招聘在线笔试第二场 题目1 : Lucky Substrings 阅读全文
posted @ 2015-05-01 10:49 stonehat 阅读(863) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页