码迷,mamicode.com
首页 >  
搜索关键字:equal    ( 3393个结果
Same Tree
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
Merge Sorted Array
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
Partition List
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
LeetCode: Partition List [086]
【题目】 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
Aizu 1335 Equal Sum Sets
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
Java 中 == 和 equal 的区别 (String)
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
[LeetCode] [Partition List 2012-04-30]
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
Same Tree
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
【Leetcode】Partition List
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!