作者归档:在线疯狂

RSS feed of 在线疯狂

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

继续阅读

[LeetCode]Subdomain Visit Count

题目描述:

LeetCode 811. Subdomain Visit Count

A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discuss.leetcode.com". When we visit a domain ...

继续阅读