- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode Largest Number
题目: Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result may b
2016-02-29 14:38:27 420
原创 Wiggle Sort II
题目: Given an unsorted array nums, reorder it such that nums[0] nums[2] . Example: (1) Given nums = [1, 5, 1, 1, 6, 4], one possible answer is [1, 4, 1, 5, 1, 6]. (2) Given nums = [1, 3, 2,
2016-02-26 10:17:10 969
原创 Database LeetCode Rank Scores
题目: Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer va
2016-02-20 14:12:27 477
原创 Database LeetCode Department Highest Salary
题目: 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 | Depar
2016-02-19 18:02:22 373
原创 Database LeetCode Second Highest Salary
题目: Write a SQL query to get the second highest salary from the Employee table. +----+--------+ | Id | Salary | +----+--------+ | 1 | 100 | | 2 | 200 | | 3 | 300 | +----+--------+
2016-02-19 12:58:53 349
原创 Database Leetcode Customers Who Never Order
题目: Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything. Table: Customers. +----+-------+ | Id
2016-02-18 17:07:19 388
原创 Database Leetcode Combine Two Tables
题目: Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | PersonId | int | | FirstName | varchar | | LastName | varchar | +-------------+---------
2016-02-18 16:17:15 374
原创 Database LeetCode Employees Earning More Than Their Managers
题目: The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id. +----+-------+--------+-----------+ | Id | Name | Salar
2016-02-17 20:33:26 389
原创 LeetCode Reverse Words in a String
题目: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Update (2015-02-12): For C programmers: Try to solve it in-pla
2016-02-16 20:22:16 361
原创 LeetCode Verify Preorder Serialization of a Binary Tree
题目: One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as #.
2016-02-16 16:59:41 370
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人