链接:https://leetcode-cn.com/problems/search-in-rotated-sorted-array/ 思路 找出两段;通过找出满足条件:第一段的数字都大于第一个数。 第一次二分找出分段点,第二次二分求解。 代码 class Solution { public: in ...
分类:
编程语言 时间:
2020-06-25 23:26:56
阅读次数:
60
开窗函数的理解参见: 理解hive中的开窗函数 over()中除了可以使用partition by选择分组字段外, 还有以下函数 order by 排序 指定聚合行的范围, 配合order by使用 current row: 当前行 n PRECEDING: 往前 n 行数据 n FOLLOWING... ...
分类:
其他好文 时间:
2020-06-25 21:54:18
阅读次数:
76
查看分支:git branch 创建分支:git branch 切换分支:git checkout 或者git switch 创建+切换分支:git checkout -b 或者git switch -c 合并某分支到当前分支:git merge 删除分支:git branch -d ...
分类:
其他好文 时间:
2020-06-25 19:37:13
阅读次数:
60
Backup and Recovery: Concepts ObjectivesAfter completing this lesson, you should be able to:? Identify the types of failure that can occur in an Oracl ...
分类:
数据库 时间:
2020-06-25 19:17:27
阅读次数:
296
Redis 支持五种数据类型:string(字符串),hash(哈希),list(列表), set(集合)及 zsetsorted set:有序集合)。 我们实际项目中比较常用的是 string,hash 如果你是 Redis 中高级用户,还需要 加上下面几种数据结构 HyperLogLog、Geo ...
分类:
其他好文 时间:
2020-06-25 17:25:30
阅读次数:
68
git init 创建工作区 git add . 添加到暂存区 提交到版本区 git commit -m 'init app' 记录远程仓库地址 git branch 查看分支 创建并切换分支 git push -u origin my 推送到远程仓库 git status 查看本地状态 git a ...
分类:
其他好文 时间:
2020-06-25 12:02:44
阅读次数:
76
Search in Rotated Sorted Array (M) 题目 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5 ...
分类:
其他好文 时间:
2020-06-25 10:21:08
阅读次数:
61
题目 Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the re ...
分类:
其他好文 时间:
2020-06-25 09:37:51
阅读次数:
61
由于使用模板替换生成的 yaml 文件,端口号deployment service 是一致的,但是在发布时不能确定jar应用的端口号(真不配合,没办法) 造成要修改端口号,deployment 替换模板后直接调用 curl PUT 可以更新,但是service 出现问题, 前期是删除sevice,造 ...
34. 在排序数组中查找元素的第一个和最后一个位置 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array 题目 给定一个按照升序排列的整数数组 ...
分类:
编程语言 时间:
2020-06-24 18:03:28
阅读次数:
61