摘要:
题目: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... 阅读全文
摘要:
题目:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.思路:固定一点,计算每一条经过这个店的直线斜率,用一个hashmap记录。记录下最多的斜率个数。对每... 阅读全文
摘要:
Given two words (beginWordandendWord), and a dictionary's word list, find all shortest transformation sequence(s) frombeginWordtoendWord, such that:On... 阅读全文