摘要: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOB 阅读全文
posted @ 2019-03-13 13:12 Schwifty 阅读(196) 评论(0) 推荐(0)
摘要: Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note: Your al 阅读全文
posted @ 2019-03-13 11:36 Schwifty 阅读(193) 评论(0) 推荐(0)
摘要: Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti 阅读全文
posted @ 2019-03-13 10:55 Schwifty 阅读(112) 评论(0) 推荐(0)
摘要: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost 阅读全文
posted @ 2019-03-13 10:22 Schwifty 阅读(151) 评论(0) 推荐(0)