摘要: 题目:Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You shoul... 阅读全文
posted @ 2016-01-17 12:15 Hygeia 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 题目:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.思路:固定一点,计算每一条经过这个店的直线斜率,用一个hashmap记录。记录下最多的斜率个数。对每... 阅读全文
posted @ 2016-01-17 06:27 Hygeia 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Given two words (beginWordandendWord), and a dictionary's word list, find all shortest transformation sequence(s) frombeginWordtoendWord, such that:On... 阅读全文
posted @ 2016-01-17 05:44 Hygeia 阅读(330) 评论(0) 推荐(0) 编辑