HF_Cherish

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2015年7月22日

摘要: 1. Problem一个字符串只能包含'(',')','{','}','['和']',判断字符串是否是闭合有效字符串。Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if... 阅读全文
posted @ 2015-07-22 21:58 HF_Cherish 阅读(154) 评论(0) 推荐(0) 编辑

摘要: 1. Problem去掉链表的倒数第n个节点,并返回链表头。一次遍历完成Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list... 阅读全文
posted @ 2015-07-22 21:26 HF_Cherish 阅读(189) 评论(0) 推荐(0) 编辑

2015年7月14日

摘要: 1. 几点认识:java中有两类线程:user thread(用户线程),daemon thread(守护线程)守护线程为其他线程的运行提供服务,例如GC线程(垃圾回收线程),内存管理线程。虚拟机判断程序执行结束的标准时不考虑守护线程:如果user thread全部撤离,daemon thread因... 阅读全文
posted @ 2015-07-14 16:48 HF_Cherish 阅读(1225) 评论(0) 推荐(0) 编辑

摘要: 1. Question给定整型数组和target,找数组中的所有和为target的四个数,将其按值升序排列输出,输出结果不包含重复数对。Given an array S of n integers, are there elements a, b, c, and d in S such that a... 阅读全文
posted @ 2015-07-14 10:58 HF_Cherish 阅读(201) 评论(0) 推荐(0) 编辑

2015年7月3日

摘要: 1. Question给一个数字字符串,按照电话上各个数字对应的字母,返回该字符串代表的所有可能的字母组合。Given a digit string, return all possible letter combinations that the number could represent.A ... 阅读全文
posted @ 2015-07-03 23:05 HF_Cherish 阅读(134) 评论(0) 推荐(0) 编辑

2015年6月29日

摘要: 1. Question给定一个整型数组和key,找三个数,使其和与key最相近,返回这三个数的和。(假设至少会有一个解)Given an array S of n integers, find three integers in S such that the sum is closest to a... 阅读全文
posted @ 2015-06-29 11:02 HF_Cherish 阅读(156) 评论(0) 推荐(0) 编辑

2015年6月24日

摘要: 1. Question将excel表中的列标题(A、B、C...)转换为对应的列数字返回。Given a column title as appear in an Excel sheet, return its corresponding column number.For example: ... 阅读全文
posted @ 2015-06-24 22:52 HF_Cherish 阅读(200) 评论(0) 推荐(0) 编辑

摘要: 1. Question找数组中的大多数元素,即元素个数超过一般的那个元素Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ ... 阅读全文
posted @ 2015-06-24 22:48 HF_Cherish 阅读(190) 评论(0) 推荐(0) 编辑

摘要: 1. Question判断一个树是否是平衡二叉树(每个节点的两个子树深度差不超过1)Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is d... 阅读全文
posted @ 2015-06-24 22:35 HF_Cherish 阅读(129) 评论(0) 推荐(0) 编辑

摘要: 1. 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 do... 阅读全文
posted @ 2015-06-24 22:12 HF_Cherish 阅读(134) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页