摘要:
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there ar 阅读全文
posted @ 2019-08-11 15:09
fatttcat
阅读(83)
评论(0)
推荐(0)
摘要:
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. We repeatedly make 阅读全文
posted @ 2019-08-11 14:40
fatttcat
阅读(159)
评论(0)
推荐(0)
摘要:
Given a list of dominoes, dominoes[i] = [a, b] is equivalentto dominoes[j] = [c, d] if and only if either (a==c and b==d), or (a==d and b==c) - that i 阅读全文
posted @ 2019-08-11 14:39
fatttcat
阅读(147)
评论(0)
推荐(0)
摘要:
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. Example: use queue to keep track of 阅读全文
posted @ 2019-08-11 14:17
fatttcat
阅读(117)
评论(0)
推荐(0)
浙公网安备 33010602011771号