Problem: Given an array A, we may rotate it by a non-negative integer K so that the array becomes A[K], A[K+1], A{K+2], ... A[A.length - 1], A[0], A[1 ...
分类:
其他好文 时间:
2019-02-10 09:15:23
阅读次数:
168
Employee 表包含所有员工信息,每个员工有其对应的 Id, salary 和 department Id 。 Department 表包含公司所有部门的信息。 编写一个 SQL 查询,找出每个部门工资前三高的员工。例如,根据上述给定的表格,查询结果应返回: ...
分类:
数据库 时间:
2019-02-08 19:58:09
阅读次数:
387
Employee 表包含所有员工信息,每个员工有其对应的 Id, salary 和 department Id。 Department 表包含公司所有部门的信息。 编写一个 SQL 查询,找出每个部门工资最高的员工。例如,根据上述给定的表格,Max 在 IT 部门有最高工资,Henry 在 Sale ...
分类:
数据库 时间:
2019-02-07 19:07:00
阅读次数:
402
编写一个 SQL 查询,获取 Employee 表中第 n 高的薪水(Salary)。 例如上述 Employee 表,n = 2 时,应返回第二高的薪水 200。如果不存在第 n 高的薪水,那么查询应返回 null。 ...
分类:
数据库 时间:
2019-02-06 22:45:11
阅读次数:
262
Q1: Find the smallest way from array: O(n), cannot be improved anymore, because we have to loop though the array once. Q2: Find 2nd smallest value, na ...
分类:
其他好文 时间:
2019-02-06 09:31:06
阅读次数:
211
This problem was asked by Microsoft. A number is considered perfect if its digits sum up to exactly 10. Given a positive integer n, return the n-th pe ...
分类:
其他好文 时间:
2019-02-06 09:26:03
阅读次数:
187
编写一个 SQL 查询,获取 Employee 表中第二高的薪水(Salary) 。 例如上述 Employee 表,SQL查询应该返回 200 作为第二高的薪水。如果不存在第二高的薪水,那么查询应返回 null。 ...
分类:
数据库 时间:
2019-02-02 18:56:46
阅读次数:
220
1090 Highest Price in Supply Chain (25 分) A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in ...
分类:
其他好文 时间:
2019-01-26 19:34:57
阅读次数:
143
恢复内容开始 一、效果 二、知识点 1、line-height:1;/*清除默认高度*/ 2、font-weight: bold;/*字体加粗*/ 3、transition-delay: 0.1s;延迟动画过渡 4、:nth-child(1)按下标选取集合元素的子元素 5、<span>一般用于没有实 ...
分类:
其他好文 时间:
2019-01-25 15:06:53
阅读次数:
177
算法描述: Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After ...
分类:
其他好文 时间:
2019-01-25 13:42:02
阅读次数:
169