归档 2018

[LeetCode]Largest Triangle Area

题目描述:

LeetCode 812. Largest Triangle Area

You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points.

Example:
Input: points = [[0,0],[0,1],[1,0],[0,2],[2,0]]
Output: 2
Explanation: ...

继续阅读

[LeetCode]Expressive Words

题目描述:

LeetCode 809. Expressive Words

Sometimes people repeat letters to represent extra feeling, such as "hello" -> "heeellooo", "hi" -> "hiiii".  Here, we have groups, of adjacent letters that are all the same character, and adjacent characters to the group are different.  ...

继续阅读

每月存档

去年

明年