Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: 这个题目思路是 ...
分类:
其他好文 时间:
2018-06-21 11:28:06
阅读次数:
175
问题描述: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: 思 ...
分类:
其他好文 时间:
2018-06-16 12:02:23
阅读次数:
130
Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be ...
分类:
其他好文 时间:
2018-06-08 00:49:56
阅读次数:
178
这个方法很骚,线性时间,解释一波 从前向后扫描,maxele存放从nums[0]到nums[i]之间的最大元素,和当前元素比较,若当前元素nums[i]小于这个最大值,则更新end 从后往前扫描,minele存放从nums[sz-1]到当前元素中的最小值,和当前于元素比较,若当前元素大于这个最小值, ...
分类:
其他好文 时间:
2018-06-05 21:07:47
阅读次数:
95
本书的源代码:https://github.com/wakaleo/jenkins the definitive guide book 持续集成(CI,Continuous Integration),就是一个能监控你版本控制系统变化的工具。无论任何时候,只要检测到有变化,这个工具就会自动编译和测试你 ...
分类:
其他好文 时间:
2018-06-03 19:26:27
阅读次数:
134
class Solution { public: bool checkSubarraySum(vector& nums, int k) { unordered_map m; // 从头元素开始的sum,取模为key的index。 m[0] = -1; int _sum = 0; for (int i... ...
分类:
其他好文 时间:
2018-05-29 23:35:55
阅读次数:
273
[抄题]: Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an ...
分类:
编程语言 时间:
2018-05-27 23:44:39
阅读次数:
240
https://www.mindtheproduct.com/2016/02/what the hell are ci cd and devops a cheatsheet for the rest of us/ 可持续软件开发 代码开发 代码风格 google::cpplint.py 代码检查 c ...
分类:
其他好文 时间:
2018-05-24 11:51:52
阅读次数:
145
参考:https://blog.uwa4d.com/archives/USparkle_Continuous-optimization.html 实现:运行时 选中GameObject后copy坐标信息可粘贴出来 实现代码: ...
分类:
编程语言 时间:
2018-05-23 23:38:53
阅读次数:
267