摘要: Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ 阅读全文
posted @ 2020-10-25 23:05 苗妙苗 阅读(76) 评论(0) 推荐(0)
摘要: Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in 阅读全文
posted @ 2020-10-25 09:57 苗妙苗 阅读(251) 评论(0) 推荐(0)
摘要: Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 阅读全文
posted @ 2020-10-25 00:39 苗妙苗 阅读(89) 评论(0) 推荐(0)