上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 76 下一页
摘要: There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to 阅读全文
posted @ 2019-11-19 13:10 Schwifty 阅读(126) 评论(0) 推荐(0)
摘要: Remove all elements from a linked list of integers that have value val. Example: Input: 1->2->6->3->4->5->6, val = 6 Output: 1->2->3->4->5 class Solut 阅读全文
posted @ 2019-11-19 04:13 Schwifty 阅读(121) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-11-19 03:13 Schwifty 阅读(108) 评论(0) 推荐(0)
摘要: Write a SQL query to find all duplicate emails in a table named Person. + + + | Id | Email | + + + | 1 | a@b.com | | 2 | c@d.com | | 3 | a@b.com | + + 阅读全文
posted @ 2019-11-19 03:05 Schwifty 阅读(100) 评论(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. + + + + + | 阅读全文
posted @ 2019-11-19 03:00 Schwifty 阅读(121) 评论(0) 推荐(0)
摘要: Given a binary tree with the following rules: root.val == 0 If treeNode.val == x and treeNode.left != null, then treeNode.left.val == 2 * x + 1 If tre 阅读全文
posted @ 2019-11-19 02:40 Schwifty 阅读(161) 评论(0) 推荐(0)
摘要: Given a 2D grid of size n * m and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] becomes at grid[i][j 阅读全文
posted @ 2019-11-19 00:08 Schwifty 阅读(301) 评论(0) 推荐(0)
摘要: Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro 阅读全文
posted @ 2019-11-17 10:30 Schwifty 阅读(88) 评论(0) 推荐(0)
摘要: Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example: Input: 2 Output: 91 Explanation: The answer shoul 阅读全文
posted @ 2019-11-16 10:50 Schwifty 阅读(103) 评论(0) 推荐(0)
摘要: Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of 0s and a closed island is an island to 阅读全文
posted @ 2019-11-16 09:33 Schwifty 阅读(175) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 76 下一页