Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-06-04 18:37:18
阅读次数:
277
Given two sorted integer arrays A and B, merge
B into A as one sorted array.Note:You may assume that A has enough space (size
that is greater or equal...
分类:
其他好文 时间:
2014-06-04 18:18:08
阅读次数:
259
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-06-03 14:12:24
阅读次数:
306
【题目】
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of the two partitions.
For example,
Given 1->4->3-...
分类:
其他好文 时间:
2014-06-03 00:02:29
阅读次数:
270
DescriptionLet us consider sets of positive
integers less than or equal ton. Note that all elements of a set are different.
Also note that the order o...
分类:
其他好文 时间:
2014-05-31 05:12:49
阅读次数:
246
本文网上收集+自己的经验,持续更新中。。。。1、书写独立的用例,可独立执行。2、每个用例只测试一件事。3、每个测试用例中只写一个Assert。4、使用便于识别的名称。__5、使用描述性信息。例:
Assert.AreEqual(a, b, "a,b must be equal")6、通过Code C...
分类:
其他好文 时间:
2014-05-26 21:01:55
阅读次数:
267
String s1 = "abcd";String s2 = "cdfe";s1 == s2; //
比较s1和s2这2个对象的地址,如果一样,则为true,否则为falses1.equal(s2); //比较s1和s2的内容,如果相同则为true
分类:
编程语言 时间:
2014-05-26 18:24:17
阅读次数:
222
Given a linked list and a value x, partition it
such that all nodes less than x come before nodes greater than or equal to x.You
should preserve the o...
分类:
其他好文 时间:
2014-05-26 09:35:28
阅读次数:
266
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-22 16:46:03
阅读次数:
173
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-05-22 03:53:29
阅读次数:
313