错误原因:这是由于 php 5.3版本后。要求继承类必须在父类之后定义。否则就会出现Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的错误提示。也就是...
分类:
Web程序 时间:
2014-10-30 15:03:31
阅读次数:
310
问题描述:
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it ...
分类:
其他好文 时间:
2014-10-30 11:52:50
阅读次数:
256
题目描述:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
代码:ListNode * Solution::mergeTwoLists(List...
分类:
其他好文 时间:
2014-10-30 11:44:34
阅读次数:
149
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time
complexity should be O(log (m+n)).
题意:寻找两个有序数组的中位数,要求复杂度为O(log
(m+...
分类:
其他好文 时间:
2014-10-29 22:23:33
阅读次数:
226
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...
分类:
其他好文 时间:
2014-10-29 19:09:20
阅读次数:
149
Part I. The CV ReviewPass the CV to THREE developersEach dev should mark YES/NO on the CVReject any CVs with TWO No'sPart II. The Phone Interview1. Wh...
分类:
其他好文 时间:
2014-10-29 19:09:12
阅读次数:
222
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:
其他好文 时间:
2014-10-29 14:35:36
阅读次数:
158
Problem DescriptionThis problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For ex...
分类:
其他好文 时间:
2014-10-29 14:22:15
阅读次数:
139
Problem Descriptionwe define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26;Give you a letter x and a number y , you should outpu...
分类:
其他好文 时间:
2014-10-29 01:56:59
阅读次数:
154
Problem DescriptionGive you a number on base ten,you should output it on base two.(0 2 3 int main(){ 4 int number; 5 char result[20]; 6 ...
分类:
其他好文 时间:
2014-10-28 23:49:48
阅读次数:
235