12 2017 档案

摘要:"Sort Colors" Difficulty Medium tags Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacen 阅读全文
posted @ 2017-12-13 15:45 whensean 阅读(142) 评论(0) 推荐(0)
摘要:"Spiral Matrix" Difficulty Medium tags Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For ex 阅读全文
posted @ 2017-12-13 15:37 whensean 阅读(98) 评论(0) 推荐(0)
摘要:"Next Permutation" Difficulty Medium tags `permutation` Implement next permutation, which rearranges numbers into the lexicographically next greater p 阅读全文
posted @ 2017-12-13 15:18 whensean 阅读(128) 评论(0) 推荐(0)