[LeetCode]Shortest Unsorted Continuous Subarray

题目描述:

LeetCode 581. Shortest Unsorted Continuous Subarray

Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order, too.

You ...

继续阅读

[LeetCode]Count Student Number in Departments

题目描述:

LeetCode 580. Count Student Number in Departments

A university uses 2 data tables, student and department, to store data about its students and the departments associated with each major.

Write a query to print the respective department name and ...

继续阅读

[LeetCode]Get Highest Answer Rate Question

题目描述:

LeetCode 578. Get Highest Answer Rate Question

Get the highest answer rate question from a table survey_log with these columns: uid, action, question_id, answer_id, q_num, timestamp.

uid means user id; action has these kind of values: "show", "answer", "skip" ...

继续阅读

LeetCode Weekly Contest 31解题报告

LeetCode Weekly Contest 31是LeetCode举办的第三十六场正式周赛,共4道题目,比赛时长1.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-31/

题解列表:

LeetCode 575. Distribute Candies

LeetCode 572. Subtree of Another Tree

LeetCode 573. Squirrel Simulation

LeetCode 576. Out of Boundary Paths