码迷,mamicode.com
首页 >  
搜索关键字:equal    ( 3393个结果
Swift--基本运算符
这一章相对简单,只对运算符进行简单的举例讲解。 基本运算包括: 一、赋值(=) 例如:  let b = 10  var a = 5 a = b // a is now equal to 10 二、算法(+ - * /) 例如: 1 +2       // equals 3 5 -3       // equals 2 2 *3       // equals 6 10....
分类:其他好文   时间:2014-06-20 09:51:38    阅读次数:237
Partition List
题目 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 node...
分类:其他好文   时间:2014-06-11 06:28:41    阅读次数:364
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-06-10 12:06:09    阅读次数:205
RhinoMock学习-Stub方法
// Arrangevar stub = MockRepository.GenerateStub();stub.Stub(x => x.StringArgString(Arg.Is.Equal("input"))).Return("output");// Actvar firstCallResult...
分类:其他好文   时间:2014-06-08 19:23:49    阅读次数:176
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 to m + n) to hold additional el...
分类:其他好文   时间:2014-06-08 05:05:47    阅读次数:268
projecteuler---->problem=23----Non-abundant sums
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means th...
分类:其他好文   时间:2014-06-08 04:05:14    阅读次数:315
LeetCode OJ - 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 or...
分类:其他好文   时间:2014-06-07 20:35:55    阅读次数:236
【LeetCode】Partition List
Partition ListGiven a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should pres...
分类:其他好文   时间:2014-06-07 06:24:57    阅读次数:179
LeetCode: Same Tree [100]
【题目】 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 and the nodes have the same value. 【题意】 判断了两个二叉树是否相等 【思路】 递归...
分类:其他好文   时间:2014-06-02 11:03:03    阅读次数:205
LeetCode: Merge Sorted Array [088]
【题目】 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 to m + n) to hold additional elements from B. The number of elements initialized in A and B are...
分类:其他好文   时间:2014-06-01 09:21:16    阅读次数:292
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!