码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
This Bag Is Durable And Classic In Design
Four front pockets, two outside and two interior that offers ample space for storing small accessories such as mobile phone, iPod, wallet and keys. Li...
分类:其他好文   时间:2014-07-16 22:57:33    阅读次数:180
【leetcode刷题笔记】Length of Last Word
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2014-07-16 21:00:49    阅读次数:208
C primer plus 练习题 第七章
1. 1 #include 2 3 #define SPACE ' ' 4 #define NEWLINE '\n' 5 6 int main() 7 { 8 int spaces,newlines,others; 9 char ch;10 spaces = newli...
分类:其他好文   时间:2014-07-16 20:18:33    阅读次数:139
使用GLM时无法找到glm::lookAt()的错误
glm::mat4 View = glm::lookAt( glm::vec3(4,3,3), // Camera is at (4,3,3), in World Space glm::vec3(0,0,0), // and looks at the origin gl...
分类:其他好文   时间:2014-07-16 19:34:31    阅读次数:588
POJ 2392 Space Elevator
多重背包问题。 我的背包训练第三题,多重背包。似乎有点理解多重背包了。 我对背包九讲多重背包的理解: 当某件物品 体积*数量 超过背包的容积的时候,这就做完全背包(相当于无限取) void completepack(int h,int cost,int a) { for(int i=cost;i<=a;i++) dp[i]=max(d...
分类:其他好文   时间:2014-07-13 00:09:57    阅读次数:192
LeetCode——Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? 原题链接:https:/...
分类:其他好文   时间:2014-07-12 20:43:11    阅读次数:213
Leetcode:Swap Nodes in Pairs 单链表相邻两节点逆置
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-07-12 20:39:17    阅读次数:225
CorePlot学习七---坐标轴的详细分析
先看代码,有标注,很详细,看看是如何设定x、y轴的可视范围、移动范围、已经如何确定原点的位置的、还有就是如何固定坐标轴!!! //坐标轴的初始化 -(void)axesInit { // Setup plot space: 设置一屏内可显示的x,y量度范围 CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *)[xyGraph default...
分类:其他好文   时间:2014-07-12 20:03:37    阅读次数:349
LeetCode——Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet"...
分类:其他好文   时间:2014-07-10 20:57:26    阅读次数:215
eclipse config 2 tab -> space
编码规范要求不允许使用tab,但是又要有4个字符的缩进,连点4次space,这不是程序员的风格 来看看 eclipse 设置一次tab像space的转换 如下操作 Window->Preferences   基于K&R clone一个新的代码风格 更改缩进风格   缩进大小为4,即4个字符,OK完成了...
分类:系统相关   时间:2014-07-10 20:38:42    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!