上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],... 阅读全文
posted @ 2014-11-21 15:23 雄哼哼 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace... 阅读全文
posted @ 2014-11-21 15:21 雄哼哼 阅读(418) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or... 阅读全文
posted @ 2014-11-20 11:37 雄哼哼 阅读(158) 评论(0) 推荐(0) 编辑
摘要: ①链表反转单向链表的反转是一个经常被问到的一个面试题,也是一个非常基础的问题。比如一个链表是这样的: 1->2->3->4->5 通过反转后成为5->4->3->2->1。最容易想到的方法遍历一遍链表,利用一个辅助指针,存储遍历过程中当前指针指向的下一个元素,然后将当前节点元素的指针反转后,利用已经... 阅读全文
posted @ 2014-11-20 10:53 雄哼哼 阅读(404) 评论(0) 推荐(0) 编辑
摘要: Divide two integers without using multiplication, division and mod operator.由于不能用乘号,除号,和取余。那么一个数除另外一个数,如a/b,实际含义是a中有多少个b,我们可以多次计算a-b,并更新a,最后a-b>1; ... 阅读全文
posted @ 2014-11-20 10:44 雄哼哼 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor... 阅读全文
posted @ 2014-11-19 14:14 雄哼哼 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon... 阅读全文
posted @ 2014-11-19 10:33 雄哼哼 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 进程的定义:是一个具有独立功能的程序关于某个数据集合的一次运行活动。它可以申请和拥有系统资源,是一个动态的概念,是一个活动的实体。它不只是程序的代码,还包括当前的活动,通过程序计数器的值和处理寄存器的内容来表示。程序的定义:只是一组指令的有序集合,它本身没有任何运行的含义,它只是一个静态的实体。区别... 阅读全文
posted @ 2014-11-18 12:20 雄哼哼 阅读(6246) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2014-11-18 10:15 雄哼哼 阅读(161) 评论(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 @ 2014-11-17 21:05 雄哼哼 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页