今天在自己实现strlen函数的时候碰到碰到了一个很有意思的warning:warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] 1 #include 2 3 int strlen(cha.....
分类:
其他好文 时间:
2015-08-14 00:53:52
阅读次数:
237
Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alte...
分类:
其他好文 时间:
2015-08-11 12:14:03
阅读次数:
108
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like
this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I ...
分类:
其他好文 时间:
2015-08-10 10:36:46
阅读次数:
184
当一个app的功能越来越复杂,代码量越来越多,也许有一天便会突然遇到下列现象:1. 生成的apk在2.3以前的机器无法安装,提示INSTALL_FAILED_DEXOPT2. 方法数量过多,编译时出错,提示:Conversion to Dalvik format failed:Unable to e...
分类:
其他好文 时间:
2015-08-09 20:15:47
阅读次数:
290
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-08-09 16:53:52
阅读次数:
154
【103-Binary Tree Zigzag Level Order Traversal(二叉树分层Z字形遍历)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to righ...
分类:
编程语言 时间:
2015-08-08 07:58:56
阅读次数:
182
隐式转换(implicit conversion)short a=2000;int b;b=a;short是两字节,int是四字节,由short型转成int型是宽化转换(bit位数增多),编译器没有warning,如下图所示。宽化转换(如char到int,int到long long,int到floa...
分类:
其他好文 时间:
2015-08-08 06:30:52
阅读次数:
151
Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alte...
分类:
其他好文 时间:
2015-08-07 14:52:28
阅读次数:
117
ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number
of rows like this: (you may want to display this pattern in a fixed font for better legi...
分类:
其他好文 时间:
2015-08-05 16:30:25
阅读次数:
200
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:
编程语言 时间:
2015-08-05 10:04:33
阅读次数:
167