摘要: 704. 二分查找 Difficulty: 简单 给定一个 n 个元素有序的(升序)整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在返回下标,否则返回 -1。 示例 1: 输入: nums = [-1,0,3,5,9,12], targe 阅读全文
posted @ 2021-05-11 23:34 swordspoet 阅读(56) 评论(0) 推荐(0) 编辑
摘要: SET mapreduce.job.queuename=xxx; WITH a AS ( SELECT 'a' col_1, 1 col_2 union all SELECT 'a' col_1, 2 col_2 union all SELECT 'a' col_1, 3 col_2 ), b AS 阅读全文
posted @ 2021-05-11 16:21 swordspoet 阅读(316) 评论(0) 推荐(0) 编辑
摘要: SET mapreduce.job.queuename=xxx; WITH a AS ( SELECT 'a' col_1, 1 col_2 union all SELECT 'b' col_1, 2 col_2 union all SELECT 'c' col_1, 3 col_2 ), b AS 阅读全文
posted @ 2021-05-11 16:11 swordspoet 阅读(1925) 评论(0) 推荐(0) 编辑