摘要: [抄题]: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example 1: Example 2: [暴力解法]: 时间分析: 空间分析: [优 阅读全文
posted @ 2018-07-25 23:40 苗妙苗 阅读(154) 评论(0) 推荐(0)
摘要: [抄题]: Shuffle a set of numbers without duplicates. Example: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: [英文数据结构或算法,为什么不用 阅读全文
posted @ 2018-07-25 16:22 苗妙苗 阅读(189) 评论(0) 推荐(0)
摘要: [抄题]: Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square bracket 阅读全文
posted @ 2018-07-25 10:26 苗妙苗 阅读(201) 评论(0) 推荐(0)