码迷,mamicode.com
首页 >  
搜索关键字:blue    ( 1833个结果
leetcode || 75、Sort Colors
problem: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we wi...
分类:其他好文   时间:2015-04-09 17:32:33    阅读次数:105
css3-columns多列布局
1 /*css3中的布局*/ 2 .wrapper{ 3 margin:auto; 4 width:300px; 5 height:200px; 6 border:2px dotted blue; 7 -webkit-columns:15px 3;/*表示多列布局,每...
分类:Web程序   时间:2015-04-07 23:00:43    阅读次数:137
hdu 4292 贪心
http://acm.hdu.edu.cn/showproblem.php?pid=4296 Problem Description   Have you ever heard the story of Blue.Mary, the great civil engineer? Unlike Mr. Wolowitz, Dr. Blue.Mary has accomplished m...
分类:其他好文   时间:2015-04-07 11:58:01    阅读次数:120
LeetCode Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers ...
分类:其他好文   时间:2015-04-06 23:19:26    阅读次数:176
Leetcode #151 Reverse Words in a String
题目链接:https://leetcode.com/problems/reverse-words-in-a-string/反转字符串的方法有很多种。要求空间复杂度是常数的话,可以先反转所有的单词,然后反转整个字符串。例如"the sky is blue",可以先反转为"eht yks si eulb...
分类:其他好文   时间:2015-04-06 21:29:12    阅读次数:155
LeetCode之ReverseWorldString
题目:将一个英文句子翻转,比如:the sky is blue 翻转后变为:blue is sky the分析:我的实现方法是,利用栈将单词存储起来,然后再顺序拿出来,单词进栈还需注意添加空格。主要代码:class Solution {public: void reverseWords(string...
分类:其他好文   时间:2015-04-06 17:04:02    阅读次数:197
[LeetCode]Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integer...
分类:其他好文   时间:2015-04-06 11:29:06    阅读次数:121
Python面向对象编程
Color类从一个非常简单的类定义开始:class Color(object): '''An RGB color,with red,green,blue component''' pass关键字def用于告诉Python我们定义了一个新函数,关键字class则表明我们定义了一个新类。(object)这部分内容说的是,类Color是一种对象;文档字符串描述了Color对象的功能,pass...
分类:编程语言   时间:2015-04-05 23:40:53    阅读次数:443
【CTF】逆向基础知识1
虽然逆向涉及的知识比较多,但是如果把应用限定在CTF题目之类的话,我们这里对经常用到的一些基础知识做一个总结。 思路来源:Blue-lotus&信协集训&c++安全编码&0day安全&Google stack frame 的基本概念 ebp 的作用是? ebp和esp是栈的顶端、底端的标志 ebp ...
分类:其他好文   时间:2015-04-05 21:44:45    阅读次数:407
【万里征程——Windows App开发】绘制图形
Rectangle 我们开篇先介绍一个之前用过,也是比较简单的Rectangle。简单的矩形就只用定义长和宽了,但如果要有圆角的话呢,用RadiusX和RadiusY就好啦。那么RadiusX和RadiusY到底是什么呢?看看下图就知道啦。<Rectangle Fill="Yellow" Width="300" Height="200" Stroke="Blue"...
分类:移动开发   时间:2015-04-04 09:21:02    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!