上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: Write a SQL query to get the second highest salary from the Employee table. For example, given the above Employee table, the second highest salary is 阅读全文
posted @ 2017-01-16 13:53 lettuan 阅读(435) 评论(0) 推荐(0) 编辑
摘要: Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. For example, ret 阅读全文
posted @ 2017-01-16 12:47 lettuan 阅读(167) 评论(0) 推荐(0) 编辑
摘要: The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id. Given the Em 阅读全文
posted @ 2017-01-16 12:28 lettuan 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Table: Person Table: Address Write a SQL query for a report that provides the following information for each person in the Person table, regardless if 阅读全文
posted @ 2017-01-16 11:45 lettuan 阅读(551) 评论(0) 推荐(0) 编辑
摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You a 阅读全文
posted @ 2017-01-09 13:10 lettuan 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all duplicates such that each element appears only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3 阅读全文
posted @ 2017-01-08 12:43 lettuan 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2017-01-08 06:07 lettuan 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If nums = 阅读全文
posted @ 2017-01-08 04:48 lettuan 阅读(126) 评论(0) 推荐(0) 编辑
摘要: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order,We get the following sequence 阅读全文
posted @ 2017-01-07 15:42 lettuan 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Implement int sqrt(int x). 思路: Binary Search 阅读全文
posted @ 2017-01-07 11:53 lettuan 阅读(97) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页