- 博客(4)
- 资源 (6)
- 收藏
- 关注
原创 LeetCode 45. Jump Game II
45. Jump Game II Given an array of non-negative integers, you are initiallypositioned at the first index of the array. Each element in the array represents your maximum jump length atthat position.
2017-03-30 21:26:21 373
原创 LeetCode 42. Trapping Rain Water
Given n non-negativeintegers representing an elevation map where the width of each bar is 1,compute how much water it is able to trap after raining. For example, Given [0,1,0,2,1,0,1,3,2,1,2,1]
2017-03-30 10:03:50 260
原创 LeetCode 41. First Missing Positive
41. First Missing Positive Given an unsorted integer array, find the first missing positiveinteger. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n)
2017-03-29 20:56:30 384
原创 freopen---重定向文件流----解决刷oj时手动输入的烦恼
刷oj时每次都手动输入很不方便---好在输入段其实也是一种流我们可以使用文件定向到标准输入与输出流来简便处理输入与输出问题。 先接受下函数 FILE * freopen ( const char * filename, const char * mode, FILE * stream ); 【参数说明】 filename: 要打开的文件名 mode: 文件打开的模式,和fope
2017-03-27 10:41:09 739
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人