上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: 上升的温度 这是一道使用 sql 语句编程的题目 1. 地址 https://leetcode-cn.com/problems/rising-temperature/ 2. 解法 联表查询 注意联表的条件和取值 # Write your MySQL query statement below sel 阅读全文
posted @ 2020-06-21 21:14 吴丹阳-V 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1、场景 使用 redis 作为延迟队列时,在 zrangebyscore 与 zrem 之间会存在 context switch 的情况,造成其他的消费者空转 在其他场景下可能会发生更严重的情况 在掘金小册《Redis 深度历险:核心原理与应用实践》第四章讲的比较清楚,最后作者留了一个思考题 使用 阅读全文
posted @ 2020-06-21 20:40 吴丹阳-V 阅读(2953) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-21 16:16 吴丹阳-V 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 第十行 shell 编程题目 1. 地址 https://leetcode-cn.com/problems/tenth-line/comments/ 2. 解法 最简洁的做法: awk 'NR==10' file.txt # NR 代表是行数 或者: sed -n 10p file.txt 阅读全文
posted @ 2020-06-20 20:50 吴丹阳-V 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 有效电话号码 shell 编程题目 考察了很多方面的内容 shell 命令 grep | sed | awk 正则表达式 shell 的转义处理 1. 地址 https://leetcode-cn.com/problems/valid-phone-numbers/ 2. 解法 你可以假设一个有效的电 阅读全文
posted @ 2020-06-15 23:39 吴丹阳-V 阅读(896) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页