Part 45 C# Tutorial Why EnumsEnums are strongly typed constants.If a program uses set of integral numbers, consider replacing them with enums. Other.....
接到公司的新任务,Unity3d游戏接入ios 平台。遇到的问题的解决:1>Xcode cannot run using the selected device:可以在XCODE下设置,也可以在UNITY生成之前就设置player setrings —>Other Settings —>SDK Ve...
分类:
移动开发 时间:
2015-05-08 19:49:54
阅读次数:
171
//dp[i] 表示以颜色为i结尾的最大值
//dp[i] = max(dp[i] , dp[i] + a*v[i] ,other_max + b*v[i]) ;
//为除颜色i以外的其它颜色的最大值
#include
#include
#include
using namespace std ;
const int maxn = 100010 ;
const __int64 in...
分类:
其他好文 时间:
2015-05-08 18:10:41
阅读次数:
125
在iOS的XCode工程配置中为什么要用-all_load&-ObjC编译iOS程序时的-all_load选项,以及-all_load 导致的 ld duplicate symbol xx的问题 官方建议是app的Build Settings中的Other Linker Flags中增加-all_o...
分类:
其他好文 时间:
2015-05-08 12:24:03
阅读次数:
145
cc150 Question 11.2 Sort array of string that anagrams next to each other.(leetcode 也有类似题目)Solution 1: 借助Arrays.sort, 需要重写comparator。 1 public sta...
分类:
其他好文 时间:
2015-05-08 06:59:04
阅读次数:
152
DescriptionSome of Farmer John’s N cows (1 ≤ N ≤ 80,000) are having a bad hair day! Since each cow is self-conscious about her messy hairstyle, FJ wants to count the number of other cows that can see t...
分类:
其他好文 时间:
2015-05-07 22:16:34
阅读次数:
168
OverviewDesign patterns are ways to reuse design solutions that other software developers have created for common and recurring problems. The design p...
分类:
编程语言 时间:
2015-05-07 21:48:03
阅读次数:
178
Yaroslav has an array, consisting of (2·n?-?1) integers. In a single operation Yaroslav can change the sign of exactly n elements in the array. In other words, in one operation Yaroslav can select exac...
分类:
其他好文 时间:
2015-05-07 16:49:51
阅读次数:
132
DescriptionIf two people were born one after another with one second difference and one of them is a child, then the other one is a child too. We get ...
分类:
其他好文 时间:
2015-05-07 16:29:12
阅读次数:
134
ROMRead-only memory(ROM) is a class ofstoragemedium used incomputersand other electronic devices. Data stored in ROM can only be modified slowly, with...
分类:
其他好文 时间:
2015-05-07 12:04:55
阅读次数:
132