摘要:
题目描述:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: ... 阅读全文
posted @ 2015-07-23 21:30
Sawyer Ford
阅读(184)评论(0)推荐(0)
摘要:
全部内容来自《剑指offer》。题目一: 输入一个英文句子,翻转句子中单词的顺序,但单词内字符的顺序不变。为简单起见,标点符号和普通字符一样处理。例如输入字符串“I am a student.”,则输出“student. a am I”。ANSWER:void reverse(char *pB... 阅读全文
posted @ 2015-07-18 19:04
Sawyer Ford
阅读(180)评论(0)推荐(0)
摘要:
题目描述:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).Find the minimum eleme... 阅读全文
posted @ 2015-07-13 19:47
Sawyer Ford
阅读(174)评论(0)推荐(0)
摘要:
题目描述:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in th... 阅读全文
posted @ 2015-06-23 11:27
Sawyer Ford
阅读(161)评论(0)推荐(0)
摘要:
题目描述:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit ... 阅读全文
posted @ 2015-06-23 10:41
Sawyer Ford
阅读(190)评论(0)推荐(0)