UIColor-uiGradientsAdditionshttps://github.com/kaiinui/UIColor-uiGradientsAdditionsBeautiful colors fromhttp://uigradients.com/优雅的渐变色效果,来自于http://uigr...
分类:
其他好文 时间:
2015-07-16 23:52:21
阅读次数:
138
There arenpiles of pebbles on the table, thei-th pile containsaipebbles. Your task is to paint each pebble using one of thekgiven colors so that for e...
分类:
其他好文 时间:
2015-07-16 22:09:50
阅读次数:
155
题目如下:
Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off those unwanted pieces and sewing the re...
分类:
其他好文 时间:
2015-07-16 14:04:03
阅读次数:
111
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:
其他好文 时间:
2015-07-14 20:17:48
阅读次数:
115
https://leetcode.com/problems/sort-colors/计数排序问题 1 class Solution { 2 public: 3 void sortColors(vector& nums) { 4 int rates[3]={0}; 5 ...
分类:
其他好文 时间:
2015-07-14 11:16:22
阅读次数:
127
在网上找到的一个有效方案是在.bash_profile 中增加颜色定义export LS_COLORS='di=01;35:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;....
分类:
系统相关 时间:
2015-07-13 13:41:41
阅读次数:
146
75 Sort Colors链接:https://leetcode.com/tag/two-pointers/
问题描述:
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 th...
分类:
其他好文 时间:
2015-07-13 12:14:35
阅读次数:
119
主题如以下:Graph ColoringYou are to write a program that tries to find an optimal coloring for agiven graph. Colors are applied to the nodes of the graph a...
分类:
其他好文 时间:
2015-07-12 17:23:08
阅读次数:
110
Kyoya Ootori has a bag with n colored balls that are colored with k different
colors. The colors are labeled from 1 to k.
Balls of the same color are indistinguishable. He draws balls from the bag...
分类:
其他好文 时间:
2015-07-10 15:13:14
阅读次数:
88
题目大意: 有n次操作,每次都是对一根线中的一段区间进行染色(颜色并不相同),有时候后面的颜色有可能覆盖前面的颜色,问最后涂完色,能看到的颜色有几种,每种颜色有几部分?解题思路: 这个题目建树的时候有些不同,并不是以点为对象,而是以区间为对象,很明显是对线段树的区间进行操作,更新的时候要以区间为.....
分类:
其他好文 时间:
2015-07-10 00:22:46
阅读次数:
128