码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
367. Valid Perfect Square
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:其他好文   时间:2017-05-07 17:44:02    阅读次数:199
CSS各种图形绘制
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>画图</title> <style type="text/css"> div{ background:black; } /*绘正方形*/ .square{ width:100px; ...
分类:Web程序   时间:2017-05-06 13:07:41    阅读次数:226
Android Otto框架浅析
今天要介绍的是一个Android中使用得比較多的android 事件总线 EventBus模式的一个框架Otto。Otto 官网:http://square.github.io/otto/一、Android Studio中配置Otto (Eclipse中直接下载jar包导入)跟之前介绍的其它的框架一 ...
分类:移动开发   时间:2017-05-03 17:28:33    阅读次数:215
[LeetCode] Maximal Square
Maximal Square Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given th ...
分类:其他好文   时间:2017-05-01 12:49:55    阅读次数:199
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 follow ...
分类:其他好文   时间:2017-04-29 19:52:50    阅读次数:158
20170426
如果一个宏里面需要经过复杂的处理才能得到一个结果数字,则这个宏必须写成一个表达式 1 /* 2 宏演示 3 */ 4 #include <stdio.h> 5 #define SQUARE(n) ((n) * (n)) 6 int main() { 7 int num = 4; 8 printf(" ...
分类:其他好文   时间:2017-04-26 18:12:33    阅读次数:163
Java&Android代码规范
项目中直接导入Square的代码风格文件。(不导入Google的原因是Square同时提供了Java和Android两套统一风格,Google只提供了一套) Square Code Styles Goolge Code Styles 导入后会有很多好处,如注释规范化,import规范,方法排序,统一 ...
分类:移动开发   时间:2017-04-26 14:39:53    阅读次数:181
OkHttp3 + retrofit2 封装
0.下载文件 1.gradle 添加 2.AndroidManifest.xml 权限 3.Application中初始化 4.调用 参考: https://github.com/gengqiquan/HttpUtil https://github.com/hongyangAndroid/okhtt ...
分类:Web程序   时间:2017-04-25 21:16:34    阅读次数:207
Leetcode 题目整理 Sqrt && Search Insert Position
Sqrt(x) Implement int sqrt(int x). Compute and return the square root of x. 注:这里的输入输出都是整数说明不会出现 sqrt(7)这种情况,思路一就是应用二分法进行查找。每次给出中间值,然后比对cur的平方与目标值的大小。需 ...
分类:其他好文   时间:2017-04-24 17:17:52    阅读次数:201
平面波法用于一维光子晶体
本算法进一步深入熟悉平面波展开法 结果如下:与文献molding the flow of light 相一致 ps:有多余线,需要进一步求证 主程序如下: 其中的获取展开系数的getGAndf_1D函数如下 ...
分类:其他好文   时间:2017-04-23 21:13:45    阅读次数:381
2122条   上一页 1 ... 94 95 96 97 98 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!