摘要: 题目描述: 给定一个字符串s,分割s使得s的每一个子串都是回文串 返回所有的回文分割结果 例如:给定字符串s="aab", 返回 [↵ ["aa","b"],↵ ["a","a","b"]↵ ] class Solution { public: vector store; vector partit 阅读全文
posted @ 2019-09-17 22:30 赵春花 阅读(301) 评论(0) 推荐(0) 编辑
摘要: "野指针的成因,危害以及避免方法?" 。 阅读全文
posted @ 2019-09-02 21:44 赵春花 阅读(144) 评论(0) 推荐(0) 编辑
摘要: "strcpy及memcpy的内存重叠处理" 。 "深度剖析strcpy与memcpy" 。 阅读全文
posted @ 2019-09-01 22:42 赵春花 阅读(390) 评论(0) 推荐(0) 编辑
摘要: ```CPP include include using namespace std; //主函数 int main() { string tst; int size_a=sizeof(string); int a[9] = {1,2,3,4,5,6,7,8,9}; int p ; //p就是地址 阅读全文
posted @ 2019-09-01 21:43 赵春花 阅读(80) 评论(0) 推荐(0) 编辑
摘要: ```CPP /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* ReverseList(ListN... 阅读全文
posted @ 2019-09-01 21:17 赵春花 阅读(136) 评论(0) 推荐(0) 编辑
摘要: zookeeper相关文章推荐 http://developer.51cto.com/art/201809/583184.htm Kafka史上最详细原理总结 https://blog.csdn.net/lingbo229/article/details/80761778 HBase详解 https 阅读全文
posted @ 2019-07-17 20:59 赵春花 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 函数 我们知道圆的面积计算公式为: S = πr2 当我们知道半径r的值时,就可以根据公式计算出面积。假设我们需要计算3个不同大小的圆的面积: var r1 = 12.34; var r2 = 9.08; var r3 = 73.1; var s1 = 3.14 r1 r1; var s2 = 3. 阅读全文
posted @ 2019-07-10 15:25 赵春花 阅读(344) 评论(0) 推荐(0) 编辑
摘要: iterable 遍历Array可以采用下标循环,遍历Map和Set就无法使用下标。 为了统一集合类型,ES6标准引入了新的iterable类型,Array、Map和Set都属于iterable类型。 具有 iterable 类型的集合可以通过新的 for ... of 循环来遍历。 for ... 阅读全文
posted @ 2019-07-08 19:34 赵春花 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Map和Set JavaScript的默认对象表示方式{}可以视为其他语言中的Map或Dictionary的数据结构,即一组键值对。 但是JavaScript的对象有个小问题,就是键必须是字符串。但实际上Number或者其他数据类型作为键也是非常合理的。 为了解决这个问题,最新的ES6规范引入了新的 阅读全文
posted @ 2019-07-08 19:33 赵春花 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 循环 要计算1+2+3,我们可以直接写表达式: 1 + 2 + 3; // 6 要计算1+2+3+...+10,勉强也能写出来。 但是,要计算1+2+3+...+10000,直接写表达式就不可能了。 为了让计算机能计算成千上万次的重复运算,我们就需要循环语句。 JavaScript的循环有两种,一种 阅读全文
posted @ 2019-07-08 19:31 赵春花 阅读(395) 评论(0) 推荐(0) 编辑