码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
android paint cap join 理解 图示
android paint cap BUTT ROUND SQUARE join MITER ROUND BEVEL...
分类:移动开发   时间:2015-01-14 11:08:46    阅读次数:179
[Scheme入门]2 算数运算
1、quotient、remainder、modulo和sqrt 函数quotient用于求商数(quotient)。 函数remainder和modulo用于求余数(remainder)。 函数sqrt用于求参数的平方根(square root)。 以下是一些示例: (quotient 7 3) ;Value: 2 (modulo 7 3)  ;Value: 1 (s...
分类:其他好文   时间:2015-01-13 14:28:26    阅读次数:184
Sqrt(x)
Implementint sqrt(int x).Compute and return the square root ofx.参考:http://standalone.iteye.com/blog/1847368参考的是一个用二分查找实现的,这道题还可以用什么牛顿法之类的如果middle * mi...
分类:其他好文   时间:2015-01-12 20:41:55    阅读次数:122
LeetCode--Sqrt(x)
Implement int sqrt(int x). Compute and return the square root of x. 二分查找法: class Solution { public: int sqrt(int x) { int high = INT_MAX; int low = 0; while(low...
分类:其他好文   时间:2015-01-12 17:41:51    阅读次数:138
C预处理器
1.#define在define中使用参数注意:预处理器不进行计算,只进行字符串的替换output:这里的x+2,进行替换后变为x+2*x+2=14这里的100/SQUARE(2)替换后变为 100/2*2=100++x*++x 这里编译器将x自加两次后相乘2.#运算符和##运算符从上一个例子可以看...
分类:其他好文   时间:2015-01-12 16:06:04    阅读次数:123
LeetCode--Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [...
分类:其他好文   时间:2015-01-12 14:42:40    阅读次数:222
SICP 习题 (2.22)解题总结: 迭代过程中的列表处理
SICP 习题 2.22是习题2.21的后续题目,题目中讲到叫Louis Reasoner的人想重写suqare-list过程,希望使用迭代计算过程,而不是递归计算过程,有关迭代计算过程和递归计算过程,如果你没什么印象了,请翻回习题1.9 的解题总结看看。那个叫Louis Reasoner的人写的迭代版的suqre-list是这样的:(define (square-list-revert item...
分类:其他好文   时间:2015-01-12 00:25:51    阅读次数:232
【个人阅读作业】软件工程M1/M2总结
链接:”看《快速软件开发》的五个问题“http://www.cnblogs.com/leiyy/p/4027759.html一、较为明白的问题1. 在文章的第一个关于Square_Tech的案例中,代码测试和优化都是在所有程序完成以后才进行的,这应该也不符合快速软件开发的要求吧。如果测试工程师在最开...
分类:其他好文   时间:2015-01-10 23:39:28    阅读次数:282
canvas线性变换、颜色和样式选择
1、应用不同的线型ctx.lineWidth = value; 线条的宽度,默认为1ctx.lineCap = type; 设置端点样式, type默认为butt,可选值round,square,buttctx.lineJoin = type; 设置连接处样式,type默认为miter,可选值rou...
分类:其他好文   时间:2015-01-09 12:28:35    阅读次数:123
【leetcode】Spiral Matrix II
Spiral Matrix IIGiven an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the...
分类:其他好文   时间:2015-01-08 21:32:10    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!