写的第一个leetcode 数据库的题目,这真是个神坑,leetcode的大小写区分的问题,这下认真的记录一下:mysql在Linux下:1.数据库名和表名是严格区分大小的。2.表的别名也是严格区分大小写的。3.列名和列的别名在任何情况下都是忽略大小写的。4.变量名也是严格区分大小写的。Window...
分类:
其他好文 时间:
2015-04-13 20:40:40
阅读次数:
125
Write a SQL query to get the nth highest salary from the Employee table.
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
For exampl...
分类:
其他好文 时间:
2015-04-13 09:35:04
阅读次数:
105
The Employee table holds all employees. Every employee has an Id, a salary,
and there is also a column for the department Id.
+----+-------+--------+--------------+
| Id | Name | Salary | Departme...
分类:
其他好文 时间:
2015-04-12 16:18:06
阅读次数:
125
Write a SQL query to get the second highest salary from the Employee table.
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
For exa...
分类:
其他好文 时间:
2015-04-12 00:08:47
阅读次数:
191
JavaScript使用Max函数返回两个数字中较大数的代码。JavaScript的Math对象带有一个max函数用于获取两个数字的较大数代码:<pid="demo">Clickthebuttontoreturnthehighestnumberof5and10.</p><buttonit</button><script>functionmyFunction(){documen..
分类:
编程语言 时间:
2015-04-06 18:56:18
阅读次数:
154
Description73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of...
分类:
其他好文 时间:
2015-04-02 22:33:22
阅读次数:
192
一个进程中,主线程可以创建多个次线程。Thread oThread = new Thread(new ThreadStart(FuncA));oThread.Start();线程起始时启动的方法不能带有参数线程有5个优先级属性,由高到低分别是Highest,AboveNormal,Normal,Be...
分类:
编程语言 时间:
2015-03-31 17:30:00
阅读次数:
172
题目如下:You are given two eggs, and access to a 100-storey building. Both eggs are identical. The aim is to find out the highest floor from which an egg will not break when dropped out of a window from th...
分类:
其他好文 时间:
2015-03-30 16:31:05
阅读次数:
160
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev...
分类:
其他好文 时间:
2015-03-16 19:14:59
阅读次数:
108
TheEmployeetable holds all employees. Every employee has an Id, a salary, and there is also a column for the department Id.+----+-------+--------+----...
分类:
其他好文 时间:
2015-03-11 10:28:01
阅读次数:
111