摘要: 一、单选题1、在常用的网络协议中,___是面向连接的、有重传功能的协议。A、IP B、TCP C、UDP D、DXP2、500张多米诺骨牌整齐地排成一列,依顺序编号为1、2、3……499、500。第一次拿走所有奇数位置上的骨牌,第二次再从剩余骨牌中拿走所有奇数位置上的骨牌,依此类推。请问最后剩下的一... 阅读全文
posted @ 2014-03-26 11:21 mickole 阅读(1230) 评论(0) 推荐(1) 编辑
摘要: 题目:Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are labele... 阅读全文
posted @ 2014-02-19 08:51 mickole 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 题目:There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it co... 阅读全文
posted @ 2014-02-18 22:02 mickole 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 题目:There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following ... 阅读全文
posted @ 2014-02-18 20:47 mickole 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, every element appears three times except for one. Find that single one.Note: Your algorithm should have a linear runtim... 阅读全文
posted @ 2014-02-18 16:49 mickole 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime comp... 阅读全文
posted @ 2014-02-18 16:24 mickole 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 题目:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep co... 阅读全文
posted @ 2014-02-18 16:03 mickole 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such... 阅读全文
posted @ 2014-02-18 15:06 mickole 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.Fo... 阅读全文
posted @ 2014-02-17 22:40 mickole 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a linked list, determine if it has a cycle in it.Follow up: Can you solve it without using extra space?解题思路:判断链表有无环,可用快慢指针进行,快指针每次走两步,慢指针每次走一... 阅读全文
posted @ 2014-02-17 19:20 mickole 阅读(254) 评论(0) 推荐(0) 编辑