程序媛詹妮弗
终身学习
摘要: Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justif 阅读全文
posted @ 2019-04-25 22:26 程序媛詹妮弗 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example 1: Example 2: NOTE: input types have been 阅读全文
posted @ 2019-04-25 21:58 程序媛詹妮弗 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note: Given target value is a floati 阅读全文
posted @ 2019-04-25 13:40 程序媛詹妮弗 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 [leetcode]243. Shortest Word Distance最短单词距离 Two Pointers 2 [leetcode]244. Shortest Word Distance II最短单词距离(允许连环call) HashMap+Merge Sort 3 [leetcode]2 阅读全文
posted @ 2019-04-25 05:56 程序媛詹妮弗 阅读(434) 评论(0) 推荐(0) 编辑