归档 2017

[LeetCode]Delete Operation for Two Strings

题目描述:

LeetCode 583. Delete Operation for Two Strings

Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string ...

继续阅读

[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" ...

继续阅读

每月存档

去年

明年