leetcode记录
interesting_xupeng
这个作者很懒,什么都没留下…
展开
-
Leetcode 447. Number of Boomerangs
题目 Given n points in the plane that are all pairwise distinct, a “boomerang” is a tuple of points (i, j, k) such that the distance between i and j equals the distance between i and k (the order of...原创 2018-04-24 11:36:53 · 118 阅读 · 0 评论 -
Leetcode149_Max_Points_on_a_Line
题目Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Input: [[1,1],[2,2],[3,3]] Output: 3翻译就是给一组点,找到其中数量最多的都在一条直线上的点解答/** * Defini...原创 2018-04-24 20:18:03 · 126 阅读 · 0 评论 -
Leetcode 49 Group Anagrams
Given an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan", "ate", "nat", "bat"],Output:[ ["ate","eat","tea"], ["nat"原创 2018-04-21 12:34:48 · 128 阅读 · 0 评论 -
Leetcode219_Contains_DuplicateII
题目Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at mo...原创 2018-04-25 21:46:28 · 109 阅读 · 0 评论