摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t 阅读全文
posted @ 2017-02-20 22:17 Tsunami_lj 阅读(78) 评论(0) 推荐(0) 编辑
摘要: typedef struct {char flag[3];short value;} sampleStruct;union{char flag[3];short value;} sampleUnion; 假设 sizeof(char)=1,sizeof(short)=2,那么sizeof(sampl 阅读全文
posted @ 2017-02-20 17:32 Tsunami_lj 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2017-02-20 15:14 Tsunami_lj 阅读(205) 评论(0) 推荐(0) 编辑