leetcode
JYZzz.
这个作者很懒,什么都没留下…
展开
-
leetcode:统计在同一条直线上的点的数量
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line./** * Definition for a point. * class Point { * int x; * int y; * Point() { x = 0; ...原创 2019-03-10 15:40:25 · 625 阅读 · 0 评论 -
leetcode:单链表的排序
//链表结构 class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; }//插入排序 //链表的插入排序 public ListNode insertionSortList(ListNode head) { //非空判...原创 2019-03-10 20:01:31 · 750 阅读 · 0 评论