上一页 1 2 3 4 5 6 ··· 59 下一页
摘要: 601. 体育馆的人流量 暴力搜索条件 一开始不知道怎么去重,然后看了一眼评论区就行白了,直接 select s1.* 就可以对全表的数据进行去重 # Write your MySQL query statement below select distinct s1.* from stadium s 阅读全文
posted @ 2020-03-27 11:45 Let_Life_Stop 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 262. 行程和用户 # Write your MySQL query statement below select t.Request_at as Day, round(count(if(t.Status != 'completed', status, null))/count(status), 阅读全文
posted @ 2020-03-24 19:08 Let_Life_Stop 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 185. 部门工资前三高的所有员工 1 # Write your MySQL query statement below 2 select d.name Department, e1.Name Employee, e1.Salary from Employee e1 left join Employ 阅读全文
posted @ 2020-03-23 16:58 Let_Life_Stop 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 184. 部门工资最高的员工 需要注意的几个点,inner join可以缩减成join,取的是两个表的交集 in关键词,找的是当前所要找的数值是否在指定的范围之中 # Write your MySQL query statement below select d.Name as Department 阅读全文
posted @ 2020-03-18 12:20 Let_Life_Stop 阅读(119) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/rank-scores/ 178. 分数排名 select s1.Score, count(distinct s2.Score) as Rank from scores as s1, scores as s2 where s1.Sco 阅读全文
posted @ 2020-03-13 13:46 Let_Life_Stop 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 面试题 16.25. LRU缓存 难度中等2 设计和构建一个“最近最少使用”缓存,该缓存会删除最近最少使用的项目。缓存应该从键映射到值(允许你插入和检索特定键对应的值),并在初始化时指定最大容量。当缓存被填满时,它应该删除最近最少使用的项目。 它应该支持以下操作: 获取数据 get 和 写入数据 p 阅读全文
posted @ 2020-03-12 12:57 Let_Life_Stop 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 我们的叁叁肆: 01 - 05 https://www.youtube.com/watch?v=xnTCl4rLn0w 山东篇: 01 链接:https://pan.baidu.com/s/1T7pP9ssJmjSYTx3wsHp9hw 提取码:chz3 02 https://v.qq.com/x/ 阅读全文
posted @ 2020-02-22 13:57 Let_Life_Stop 阅读(777) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int maxn = 2e5 + 100; int ans = 0; vector<pair<int, bool> >ret; void Search(int n, int val, int po 阅读全文
posted @ 2019-12-09 15:24 Let_Life_Stop 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1. Allocate分配器中,如何解决多线程锁的争夺问题? 答:为了解决多线程锁的争夺问题,内存分配器分为了主分配区main_area和非主分配区no_main_area。主分配区和非主分配区 主分配区和非主分配区们形成一个环形链表,每一个分配区都是由一个互斥锁来控制,主分配区可以通过brk和mm 阅读全文
posted @ 2019-12-01 11:43 Let_Life_Stop 阅读(929) 评论(0) 推荐(0) 编辑
摘要: docker pull ubuntu 把ubuntu拉下来 docker ps -a 查看哪些系统可以使用 docker start 0badocker exec -it 0ba /bin/bash 运行以0ba开头的虚拟机 docker stop 0ba 停止以0ba开头的虚拟机 docker r 阅读全文
posted @ 2019-11-24 10:48 Let_Life_Stop 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 59 下一页