小小程序媛  
得之坦然,失之淡然,顺其自然,争其必然
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页

2015年9月1日

摘要: 关于C++和C的区别区别最大的是struct,C++中的struct几乎和class一样了,可以有成员函数,而C中的struct只能包含成员变量。 enum,union没区别。struct的定义struct 结构标签{ 类型1 标识符1; 类型2 标识符2; ... 阅读全文
posted @ 2015-09-01 21:49 Coding菌 阅读(216) 评论(0) 推荐(0) 编辑
 
摘要: 题目Implement pow(x, n).Show Tags Show Similar Problems分析一个不利用标准幂次函数的,求幂算法实现。参考了一个很好的解析博客:Pow(x,n)问题详解AC代码class Solution {public: double myP... 阅读全文
posted @ 2015-09-01 20:57 Coding菌 阅读(116) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given an array of strings, group anagrams together.For example, given: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Return:[ [“ate”, “eat... 阅读全文
posted @ 2015-09-01 20:28 Coding菌 阅读(218) 评论(0) 推荐(0) 编辑

2015年8月31日

摘要: 题目You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up: Could you do this in-place?分析本... 阅读全文
posted @ 2015-08-31 20:49 Coding菌 阅读(107) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example, [1,1,2] have the followin... 阅读全文
posted @ 2015-08-31 20:15 Coding菌 阅读(107) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given a collection of numbers, return all possible permutations.For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,... 阅读全文
posted @ 2015-08-31 20:07 Coding菌 阅读(160) 评论(0) 推荐(0) 编辑
 
摘要: 1.1. primitive system data types(包含很多类型重定义,如pid_t、int8_t等)1.2. //与套接字相关的函数声明和结构体定义,如socket()、bind()、connect()及struct sockaddr的定义等int set... 阅读全文
posted @ 2015-08-31 17:28 Coding菌 阅读(182) 评论(0) 推荐(0) 编辑

2015年8月28日

摘要: 题目Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and a... 阅读全文
posted @ 2015-08-28 17:42 Coding菌 阅读(184) 评论(0) 推荐(0) 编辑

2015年8月26日

摘要: new与delete我们知道,new和delete运算符是用于动态分配和撤销内存的运算符。new的用法开辟单变量地址空间; i. 如 new int ; 指开辟一个存放数组的存储空间,返回一个指向该存储空间的地址。int *a = new int 即为将一个int类型的地址... 阅读全文
posted @ 2015-08-26 20:01 Coding菌 阅读(791) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your ... 阅读全文
posted @ 2015-08-26 17:31 Coding菌 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页