摘要:
Problem : Implement the following operations of a queue using stacks. push(x) Push element x to the back of queue. pop() Removes the element from in f 阅读全文
posted @ 2020-04-21 20:33
littledy
阅读(78)
评论(0)
推荐(0)
摘要:
Problem : You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there e 阅读全文
posted @ 2020-04-21 01:09
littledy
阅读(90)
评论(0)
推荐(0)
摘要:
Problem : Given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N. If there are 阅读全文
posted @ 2020-04-21 00:15
littledy
阅读(89)
评论(0)
推荐(0)